This content has been marked as final.
Show 3 replies
-
1. Re: concurrency question
kukeltje Feb 5, 2008 3:59 PM (in response to twiceknightly)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.
-
2. Re: concurrency question
twiceknightly Feb 5, 2008 6:07 PM (in response to twiceknightly)"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. -
3. Re: concurrency question
twiceknightly Feb 5, 2008 6:09 PM (in response to twiceknightly)"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.
One last thing ... did you write yours as a jbpm service?