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]
_______________________________________________ jboss-user mailing list [email protected] https://lists.jboss.org/mailman/listinfo/jboss-user
