Uploaded image for project: 'jBPM'
  1. jBPM
  2. JBPM-3814

Session thread safe support in JTA/EE environment

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Duplicate
    • Major
    • None
    • jBPM 5.3
    • Persistence
    • 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

          Activity

            People

              swiderski.maciej Maciej Swiderski (Inactive)
              swiderski.maciej Maciej Swiderski (Inactive)
              Votes:
              8 Vote for this issue
              Watchers:
              11 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: