[jboss-user] [JBoss jBPM] - Re: cannot read process variable from other thread
clandestino_bgd
do-not-reply at jboss.com
Sat May 12 22:09:54 EDT 2007
Well, let me answer my own question, as usual:)
This link helped a lot:
http://pveentjer.wordpress.com/2007/02/19/sharing-hibernate-entities-between-threads/
So, in problematic Message consumer, which has session bound to its own thread with different state than in DB, 1 magic line should be added at the start of onMessage() method:
| context.getSession().clear();
|
It seems that I have to learn hibernate if I intend to use JBPM :)
regards
Milan
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4045249#4045249
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4045249
More information about the jboss-user
mailing list