@Override protected boolean operateOnTx(TXId txId, ClusterDistributionManager dm) { InternalCache cache = dm.getCache(); if (cache == null) { throw new CacheClosedException( "A cache has not yet been created."); } TXManagerImpl txMgr = cache.getTXMgr(); if (logger.isDebugEnabled()) { logger.debug("TX: Rolling back :{}", txId); } try { if (!txMgr.isHostedTxRecentlyCompleted(txId)) { txMgr.rollback(); } } finally { txMgr.removeHostedTXState(txId); } return true; }
private void rollbackTransaction(TXStateProxy existingTx) { try { if (!txMgr.isHostedTxRecentlyCompleted(txid)) { txMgr.rollback(); } } finally { txMgr.unmasquerade(existingTx); } }
txMgr.rollback(); rollbackSuccessful = true;
if (txState != null) { txId = txState.getTxId(); txMgr.rollback(); sendRollbackReply(clientMessage, serverConnection); } else {
txManager.rollback();