[jboss-user] [jBPM] - Re: Session and thread safety

Sebastian Calbaza do-not-reply at jboss.com
Tue Sep 4 04:41:07 EDT 2012


Sebastian Calbaza [https://community.jboss.org/people/calbazasebastian] created the discussion

"Re: Session and thread safety"

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

--------------------------------------------------------------
I'm having the same issue... JTA managed transactions with a single statefull session that is accesed concurrently... 
Because  SingleSessionCommandService uses a single instance of JpaPersistenceContextManager that returns the same EntityManager s will result in inconsistent results when it's accesed concurrently. My workaround was to implement a thread safe ProcessPersistenceContextManager and set it in the drools Environment when creating the session. ( env.set(EnvironmentName.PERSISTENCE_CONTEXT_MANAGER, persistenceContextManager));.
--------------------------------------------------------------

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

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/20120904/29cb6558/attachment-0001.html 


More information about the jboss-user mailing list