activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gtu...@apache.org
Subject svn commit: r741646 - /activemq/trunk/activemq-ra/src/main/java/org/apache/activemq/ra/ManagedTransactionContext.java
Date Fri, 06 Feb 2009 17:28:13 GMT
Author: gtully
Date: Fri Feb  6 17:28:13 2009
New Revision: 741646

URL: http://svn.apache.org/viewvc?rev=741646&view=rev
Log:
resolve unit test break, check for tx need to be overridden to take care of shared case

Modified:
    activemq/trunk/activemq-ra/src/main/java/org/apache/activemq/ra/ManagedTransactionContext.java

Modified: activemq/trunk/activemq-ra/src/main/java/org/apache/activemq/ra/ManagedTransactionContext.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-ra/src/main/java/org/apache/activemq/ra/ManagedTransactionContext.java?rev=741646&r1=741645&r2=741646&view=diff
==============================================================================
--- activemq/trunk/activemq-ra/src/main/java/org/apache/activemq/ra/ManagedTransactionContext.java
(original)
+++ activemq/trunk/activemq-ra/src/main/java/org/apache/activemq/ra/ManagedTransactionContext.java
Fri Feb  6 17:28:13 2009
@@ -121,6 +121,11 @@
         }
     }
 
+    @Override
+    public boolean isInTransaction() {
+        return isInXATransaction() || isInLocalTransaction();
+    }
+ 
     public boolean isSameRM(XAResource xaResource) throws XAException {
         if (useSharedTxContext) {
             return sharedContext.isSameRM(xaResource);



Mime
View raw message