activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dej...@apache.org
Subject svn commit: r819998 - /activemq/trunk/activemq-core/src/main/java/org/apache/activemq/store/jdbc/TransactionContext.java
Date Tue, 29 Sep 2009 15:53:38 GMT
Author: dejanb
Date: Tue Sep 29 15:53:38 2009
New Revision: 819998

URL: http://svn.apache.org/viewvc?rev=819998&view=rev
Log:
https://issues.apache.org/activemq/browse/AMQ-1886 - preventing problems with spring transactions

Modified:
    activemq/trunk/activemq-core/src/main/java/org/apache/activemq/store/jdbc/TransactionContext.java

Modified: activemq/trunk/activemq-core/src/main/java/org/apache/activemq/store/jdbc/TransactionContext.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/store/jdbc/TransactionContext.java?rev=819998&r1=819997&r2=819998&view=diff
==============================================================================
--- activemq/trunk/activemq-core/src/main/java/org/apache/activemq/store/jdbc/TransactionContext.java
(original)
+++ activemq/trunk/activemq-core/src/main/java/org/apache/activemq/store/jdbc/TransactionContext.java
Tue Sep 29 15:53:38 2009
@@ -167,8 +167,8 @@
             
             throw IOExceptionSupport.create(e);
         } finally {
-            close();
             inTx = false;
+            close();
         }
     }
 
@@ -195,8 +195,8 @@
             JDBCPersistenceAdapter.log("Rollback failed: ", e);
             throw IOExceptionSupport.create(e);
         } finally {
-            close();
             inTx = false;
+            close();
         }
     }
 



Mime
View raw message