AnsweredAssumed Answered

Spring bean is not udating my database

Question asked by satyakamkaul on Jul 11, 2013
Latest reply on Jul 17, 2013 by jbarrez
I have an execution listener.
I have loaded a spring bean in the listener. I am calling a function on this bean which eventually updates my database.
But the update does not happen. No sql is generated. This bean method works fine when i call it through my web-application.
I understand its related to transactions and that listener is not in the same context as the spring but i dont know how to fix this. Please help.
Here is my listener.

ApplicationContext context = new ClassPathXmlApplicationContext("applicationContext.xml");
tkmMgmtService = (TkmMgmtService)context.getBean("tkmMgmtService");