Uploaded image for project: 'Jackrabbit Content Repository'
  1. Jackrabbit Content Repository
  2. JCR-593

JCASessionHandle fail when i invoke logout method

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.0.1, 1.1
    • None
    • jackrabbit-jca
    • None

    Description

      I think that the "logout method" (in JCASessionHandle) isn't totally correct. I consider that we must check, before closing session, if this session is binded to a transaction. In this situation the session mustn't be closed: transaction will close it.

      public void logout() {
      if (!mc.getManagedConnectionFactory().getBindSessionToTrasaction().booleanValue())

      { mc.closeHandle(this); }

      }

      For example this is very important when we use spring, springmodules (jcr module) and jackrabbit because the springmodules library closes session when local transaction finishes. And if the session is closed by transaction a exception is throwed.

      Thanks

      Attachments

        Activity

          People

            edgarpoce Edgar Ruben Poce
            junglika Jorge Rodríguez Pedrianes
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: