[jboss-user] [JBoss jBPM] - Re: How to best control access from multiple threads to a Pr

jse do-not-reply at jboss.com
Fri Dec 19 10:26:53 EST 2008


Thanks for your answers. Am I right in thinking that two threads can, at the same time:
1) load the same ProcessInstanceForUpdate
2) Signal to their different tokens
3) Close the context (and thus commit the changed process instance state back to the database)
...without causing any clashes or hibernate exceptions, i.e. the different tokens provide true seperation between the two threads.

To your other point:
anonymous wrote :  Is there a mechanism towards P if the 200 to E cannot be send? If not, why not just do it async?
The main reason for wanting to keep async to a minimum is that it is quite heavy weight, requiring additional database persistance etc

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

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

More information about the jboss-user mailing list