jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mreut...@apache.org
Subject svn commit: r640792 - /jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/persistence/bundle/DerbyPersistenceManager.java
Date Tue, 25 Mar 2008 13:01:53 GMT
Author: mreutegg
Date: Tue Mar 25 06:01:38 2008
New Revision: 640792

URL: http://svn.apache.org/viewvc?rev=640792&view=rev
Log:
JCR-1499: Error logged when repository is shut down

Modified:
    jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/persistence/bundle/DerbyPersistenceManager.java

Modified: jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/persistence/bundle/DerbyPersistenceManager.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/persistence/bundle/DerbyPersistenceManager.java?rev=640792&r1=640791&r2=640792&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/persistence/bundle/DerbyPersistenceManager.java
(original)
+++ jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/persistence/bundle/DerbyPersistenceManager.java
Tue Mar 25 06:01:38 2008
@@ -326,6 +326,8 @@
         // @todo further investigate
         connectionManager.getConnection().setAutoCommit(true);
 
+        super.close();
+
         // now it's safe to shutdown the embedded Derby database
         try {
             DriverManager.getConnection(url);
@@ -333,8 +335,6 @@
             // a shutdown command always raises a SQLException
             log.info(e.getMessage());
         }
-
-        super.close();
     }
 
 }



Mime
View raw message