mirror of https://github.com/apache/activemq.git
resolve unit test break, check for tx need to be overridden to take care of shared case
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@741646 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
789ea7cab9
commit
ca80106573
|
@ -121,6 +121,11 @@ public class ManagedTransactionContext extends TransactionContext {
|
|||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isInTransaction() {
|
||||
return isInXATransaction() || isInLocalTransaction();
|
||||
}
|
||||
|
||||
public boolean isSameRM(XAResource xaResource) throws XAException {
|
||||
if (useSharedTxContext) {
|
||||
return sharedContext.isSameRM(xaResource);
|
||||
|
|
Loading…
Reference in New Issue