[jboss-user] [jBPM] - Re: jBPM5 Restarts and Asynchronous Work Items

davesomebody do-not-reply at jboss.com
Sat May 21 13:11:59 EDT 2011


davesomebody [http://community.jboss.org/people/davesomebody] created the discussion

"Re: jBPM5 Restarts and Asynchronous Work Items"

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

--------------------------------------------------------------
Thanks for your feedback.  I've actually had lots of experience in this now.  I did a lot of experimenting and learned some things.  Some of these things are probably obsolete with JBPM 5.1.  I see that a threading issue was solved yesterday.

Anyway, I was experiencing thread deadlocks when running lots of processes in the same knowledge session in lots of threads simultaneously.

So what I created a pool of knoweldge sessions.  I created thin wrappers for the work item handlers so I could pass into the work item which session an asynchronous work item came from.  When a work item is complete I grab the session from the pool, grab the work item manager and complete it.

I think the upcoming release will make the knowledge session pool obsolete.
--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/606423#606423]

Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]

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


More information about the jboss-user mailing list