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:
Gary Tully 2009-02-06 17:28:13 +00:00
parent 789ea7cab9
commit ca80106573
1 changed files with 5 additions and 0 deletions

View File

@ -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);