JBoss Community

Re: Multiple sessions and thread safety using jBPM persistence

created by Jason J in jBPM - View the full discussion

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

Start a new discussion in jBPM at Community