mirror of https://github.com/apache/activemq.git
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:
parent
b59d0b5938
commit
6985a09ee6
|
@ -103,7 +103,11 @@ public class TransactionContext {
|
||||||
executeBatch();
|
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{
|
try{
|
||||||
executeBatch();
|
executeBatch();
|
||||||
} finally {
|
} finally {
|
||||||
|
@ -111,7 +115,7 @@ public class TransactionContext {
|
||||||
connection.commit();
|
connection.commit();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
*/
|
|
||||||
} catch (SQLException e) {
|
} catch (SQLException e) {
|
||||||
throw IOExceptionSupport.create(e);
|
throw IOExceptionSupport.create(e);
|
||||||
} finally {
|
} finally {
|
||||||
|
|
Loading…
Reference in New Issue