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

Create functional facility to ease using sessions

    Details

    • Type: Feature Request
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Rejected
    • Affects Version/s: 3.5.0.Final
    • Fix Version/s: None
    • Component/s: API
    • Labels:
      None

      Description

      JCR and ModeShape expect that Sessions are lightweight and should be created for each separate "task". Sessions can be reused, but really creating new sessions is fast and just as good (if not better). JCR sessions are also not thread safe, so multi-threaded applications should never use one session for multiple activities (except possibly reading, but even then ...)

      Since the template code to create a session, do something, save the session (if needed), and always log out of the session is almost always the same, perhaps
      ModeShape should provide an easy to way to tell ModeShape what should be done in a session. A functional style API would work well.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                rhauch Randall Hauch
                Reporter:
                rhauch Randall Hauch
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: