You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jackrabbit.apache.org by st...@apache.org on 2005/05/24 14:57:16 UTC

svn commit: r178160 - /incubator/jackrabbit/branches/ri-1.0/src/java/org/apache/jackrabbit/core/RepositoryImpl.java

Author: stefan
Date: Tue May 24 05:57:16 2005
New Revision: 178160

URL: http://svn.apache.org/viewcvs?rev=178160&view=rev
Log:
fixed bug JCR-125: Repository holds onto Session instance after logout

Modified:
    incubator/jackrabbit/branches/ri-1.0/src/java/org/apache/jackrabbit/core/RepositoryImpl.java

Modified: incubator/jackrabbit/branches/ri-1.0/src/java/org/apache/jackrabbit/core/RepositoryImpl.java
URL: http://svn.apache.org/viewcvs/incubator/jackrabbit/branches/ri-1.0/src/java/org/apache/jackrabbit/core/RepositoryImpl.java?rev=178160&r1=178159&r2=178160&view=diff
==============================================================================
--- incubator/jackrabbit/branches/ri-1.0/src/java/org/apache/jackrabbit/core/RepositoryImpl.java (original)
+++ incubator/jackrabbit/branches/ri-1.0/src/java/org/apache/jackrabbit/core/RepositoryImpl.java Tue May 24 05:57:16 2005
@@ -586,6 +586,7 @@
             RepositoryException {
         WorkspaceInfo wspInfo = getWorkspaceInfo(workspaceName);
         SessionImpl ses = createSessionInstance(loginContext, wspInfo.getConfig());
+        ses.addListener(this);
         activeSessions.put(ses, ses);
         return ses;
     }
@@ -608,6 +609,7 @@
             RepositoryException {
         WorkspaceInfo wspInfo = getWorkspaceInfo(workspaceName);
         SessionImpl ses = createSessionInstance(subject, wspInfo.getConfig());
+        ses.addListener(this);
         activeSessions.put(ses, ses);
         return ses;
     }