allow executeBatch() in close - if not in a transaction - to release locks

git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@376298 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Robert Davies 2006-02-09 14:08:02 +00:00
parent b59d0b5938
commit 6985a09ee6
1 changed files with 6 additions and 2 deletions

View File

@ -103,7 +103,11 @@ public class TransactionContext {
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 @@ public class TransactionContext {
connection.commit();
}
}
*/
} catch (SQLException e) {
throw IOExceptionSupport.create(e);
} finally {