Details
-
Enhancement
-
Resolution: Duplicate
-
Major
-
None
-
jBPM 5.3
-
None
Description
As described in forum, there are potential issues with thread safety when running multithreaded application on single session. Attached modified test project attached in forum that is updated to latest version of jBPM/drools and added additional test with custom ProcessPersistenceContextManager mentioned in forum as well.
So now we have three test cases:
- SimpleThreadSafetyTest - one test should fail
- CustomPPCMSimpleThreadSafetyTest - uses custom PPCM based on ThreadLocal should pass
- SpringThreadSafetyTest - same as simple should fail
Note: use of ThreadLocal seems to be right approach and should not cause any issues in non EE environments or? Wdyt?
Attachments
Issue Links
- is blocked by
-
DROOLS-282 Create a "CommandSessionCommandService" implementation that does not use an application-scoped persistence context
- Open
- is duplicated by
-
JBPM-4249 Ensure that ksession can be safely used in container managed transaction environment
- Resolved