diff --git a/activemq-core/src/main/java/org/apache/activemq/TransactionContext.java b/activemq-core/src/main/java/org/apache/activemq/TransactionContext.java index 001e11c70b..158be0e8df 100755 --- a/activemq-core/src/main/java/org/apache/activemq/TransactionContext.java +++ b/activemq-core/src/main/java/org/apache/activemq/TransactionContext.java @@ -136,6 +136,8 @@ public class TransactionContext implements XAResource { throw e; } catch (Throwable e) { throw JMSExceptionSupport.create(e); + } finally { + synchornizations = null; } } @@ -172,8 +174,6 @@ public class TransactionContext implements XAResource { throw e; } catch (Throwable e) { throw JMSExceptionSupport.create(e); - } finally { - synchornizations = null; } }