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
_______________________________________________
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to