jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jorge Rodríguez Pedrianes (JIRA) <j...@apache.org>
Subject [jira] Created: (JCR-593) JCASessionHandle fail when i invoke logout method
Date Mon, 16 Oct 2006 08:33:35 GMT
JCASessionHandle fail when i invoke logout method

                 Key: JCR-593
                 URL: http://issues.apache.org/jira/browse/JCR-593
             Project: Jackrabbit
          Issue Type: Improvement
    Affects Versions: 1.0.1, 1.1
            Reporter: Jorge Rodríguez Pedrianes

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())

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.


This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira


View raw message