@Override public void rollback(Xid xid) throws XAException { List<TransactionContext> contexts = xidContextMap.remove(xid); if (contexts == null) { finalizeTransactionRemotely(xid, false); return; } for (TransactionContext context : contexts) { getTransaction(context).rollback(); } clearRemoteTransactions(xid); }
@Override public void rollback(Xid xid) throws XAException { List<TransactionContext> contexts = xidContextMap.remove(xid); if (contexts == null) { finalizeTransactionRemotely(xid, false); return; } for (TransactionContext context : contexts) { getTransaction(context).rollback(); } clearRemoteTransactions(xid); }
@Override protected Object call() throws Exception { String transactionId = parameters.transactionId; TransactionContext transactionContext = endpoint.getTransactionContext(transactionId); if (transactionContext == null) { throw new TransactionException("No transaction context with given transactionId: " + transactionId); } Transaction transaction = TransactionAccessor.getTransaction(transactionContext); transaction.rollback(); endpoint.removeTransactionContext(transactionId); return null; }
@Override protected Object call() throws Exception { String transactionId = parameters.transactionId; TransactionContext transactionContext = endpoint.getTransactionContext(transactionId); if (transactionContext == null) { throw new TransactionException("No transaction context with given transactionId: " + transactionId); } Transaction transaction = TransactionAccessor.getTransaction(transactionContext); transaction.rollback(); endpoint.removeTransactionContext(transactionId); return null; }
tx.rollback(); notifyAfterStateChange(oldState, requestedState, isTransient); if (e instanceof TargetNotMemberException || e.getCause() instanceof MemberLeftException) {
tx.rollback(); notifyAfterStateChange(oldState, requestedState, isTransient); if (e instanceof TargetNotMemberException || e.getCause() instanceof MemberLeftException) {