[jboss-user] [JBoss jBPM] - Re: concurrency question

twiceknightly do-not-reply at jboss.com
Tue Feb 5 18:08:48 EST 2008


"kukeltje" wrote : We use it the other way around. Persisting the domain objects in their session and pass this session to the jbpm context. Not sure if it will work in your situation, but it does in ours. 

Yes I thought about that but in that case isn't there essentially two layers of hibernate helper code to get SessionFactory, session etc?  i.e. your code and then the jbpm code?  I thought that the way I suggested would reuse the fairly generic code already there.  Also I presume that you will also need to use a thread local to hold a hibernate session for each thread?  

So you just call getCurrentJbpmContext at some point and then set the session on it?  

Also in terms of managing Hibernate config do you add your domain object mappings on the end of the jbpm mappings?
  
Thanks for you help.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4126818#4126818

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4126818



More information about the jboss-user mailing list