[jboss-user] [jBPM] - Multi-threaded process execution?

HuiSheng Xu do-not-reply at jboss.com
Fri Jul 2 19:42:33 EDT 2010

HuiSheng Xu [http://community.jboss.org/people/rebody] replied to the discussion

"Multi-threaded process execution?"

To view the discussion, visit: http://community.jboss.org/message/550901#550901

Hi Chris,

Let jBPM 4 support real Multi-Thread will be a good research direction.  But please notice some thing.  That the IoC containter of jBPM 4 based on the TheadLocal,  so if you create Multi-Thread in your custom activity, you maybe have to face some problems, e.g. you cannot get components directly from Environment any more.  And the transaction interceptor should be rewrite for Multi-thread scenario, you have to find a way to notify the interceptor when all of executions have completed,  and whether the current transation could commit or should rollback.

So the current implementation of jBPM 4 based on the single-thread scenario could simplify many problem and easy to achieve.  if you really want to achieve a Multi-Thread solution,  please consider about these.

Good Luck. :) 


Reply to this message by going to Community

Start a new discussion in jBPM at Community

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20100702/c8cf5026/attachment.html 

More information about the jboss-user mailing list