[rules-users] ksession.dispose() and DroolsSpringJpaManager.dispose()

krkaleraj krkaleraj at gmail.com
Thu Oct 14 08:01:09 EDT 2010


Hi, 

Anyone who are reading this thread, I presume you are struck with this
exception. I and DrooRam had a discussion on this and explored
DroolsSpringJPAManager.class. It looks like Spring takes care of releasing
your emf but if you call dispose that would remove emf in advance. So when
the transaction completes, spring tries to remove it again and complains. (I
need to go thru the code in detail. Once I finish it, will update here more
explanation)

So in a nutshell, dont use dispose method when you have container managed
transaction.

Note: if any of you agree/disagree or resolved in different way, kindly
update.

Regards, 
K R Kaleraj


-- 
View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/ksession-dispose-and-DroolsSpringJpaManager-dispose-tp1531549p1700525.html
Sent from the Drools - User mailing list archive at Nabble.com.



More information about the rules-users mailing list