Author: rajdavies
Date: Thu Feb 9 06:08:02 2006
New Revision: 376298
URL: http://svn.apache.org/viewcvs?rev=376298&view=rev
Log:
allow executeBatch() in close - if not in a transaction - to release locks
Modified:
incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/store/jdbc/TransactionContext.java
Modified:
incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/store/jdbc/TransactionContext.java
URL:
http://svn.apache.org/viewcvs/incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/store/jdbc/TransactionContext.java?rev=376298&r1=376297&r2=376298&view=diff
==============================================================================
---
incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/store/jdbc/TransactionContext.java
(original)
+++
incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/store/jdbc/TransactionContext.java
Thu Feb 9 06:08:02 2006
@@ -103,7 +103,11 @@
executeBatch();
/**
- * we are not in a transaction so should not be committing
+ * we are not in a transaction so should not be committing ??
+ * This was previously commented out - but had
+ * adverse affects on testing - so it's back!
+ *
+ */
try{
executeBatch();
} finally {
@@ -111,7 +115,7 @@
connection.commit();
}
}
- */
+
} catch (SQLException e) {
throw IOExceptionSupport.create(e);
} finally {