From 37e3387bed483586fe74dbda7e0ac55985b2135c Mon Sep 17 00:00:00 2001 From: James Strachan Date: Fri, 9 Jun 2006 06:41:37 +0000 Subject: [PATCH] applied patch for AMQ-731 from Christopher G. Stach II - many thanks! git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@412950 13f79535-47bb-0310-9956-ffa450edef68 --- .../src/main/java/org/apache/activemq/TransactionContext.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 2e18d0a70b..a4b6bab509 100755 --- a/activemq-core/src/main/java/org/apache/activemq/TransactionContext.java +++ b/activemq-core/src/main/java/org/apache/activemq/TransactionContext.java @@ -560,8 +560,10 @@ public class TransactionContext implements XAResource { if( l==null ) { l = new ArrayList(3); endedXATransactionContexts.put(transactionId, l); - } l.add(this); + } else if (!l.contains(this)) { + l.add(this); + } } // dis-associate