Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-14140

Make CoreSession thread-safe

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.9.3
    • Component/s: Core
    • Upgrade notes:
      Hide

      It's now possible to use the same CoreSession over and over in different transactions, and pass it between threads. Some constraints remain:

      • it has to be closed properly,
      • it has to be used inside a transaction.
      Show
      It's now possible to use the same CoreSession over and over in different transactions, and pass it between threads. Some constraints remain: it has to be closed properly, it has to be used inside a transaction.

      Description

      Use a ThreadLocal in LocalSession to make sure low-level sessions are never shared between threads.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: