[jboss-user] [jBPM] - Re: Multiple sessions and thread safety using jBPM persistence

Jason J do-not-reply at jboss.com
Sat Nov 3 18:02:12 EDT 2012


Jason J [https://community.jboss.org/people/jasonjho] created the discussion

"Re: Multiple sessions and thread safety using jBPM persistence"

To view the discussion, visit: https://community.jboss.org/message/774459#774459

--------------------------------------------------------------
Finally tracked it down.  For anyone that is in a similar situation, the fix is:

In SingleSessionCommandService.SynchronizationImpl.afterCompletion(...), add the following line and update the interfaces accordingly

*   this.service.jpm.clearPersistenceContext();  // clears the context after tx complete*
   this.service.jpm.endCommandScopedEntityManager();
--------------------------------------------------------------

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

Start a new discussion in jBPM at Community
[https://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/20121103/55d040d2/attachment.html 


More information about the jboss-user mailing list