Uploaded image for project: 'ModeShape'
  1. ModeShape
  2. MODE-1294

JCR interfaces should be thread safe whenever possible

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Done
    • Icon: Major Major
    • 3.0.0.Alpha1
    • 2.6.0.Final
    • JCR
    • None
    • Low

      Most of the JCR interfaces are not expected to support concurrent access by multiple threads, and this was what we did for the 2.x releases. However, this caused a number of strange problems when users did (accidentally or intensionally) use a Session in multiple threads. (For example, when an event listener used the same Session that it was registered with to read content; the listeners are called in separate threads, so multiple listeners could end up using the same Session.)

      It would be very nice if the Session, Node, Property and Workspace implementations were thread safe. Users would no longer run into any issues like those described above, and with the new 3.x design we have an opportunity to make the implementations thread safe using concurrent collections and techniques (and locks only where required) while avoiding synchronization.

              rhauch Randall Hauch (Inactive)
              rhauch Randall Hauch (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: