/** * Perform afterCompletion cleanup activities such as releasing resources. * * Caution: may not be invoked in crash recovery situations. */ public void rollback() throws WrongStateException, SystemException { txbridgeLogger.logger.trace("BridgeVolatileParticipant.rollback(Xid="+xid+")"); afterCompletion(Status.STATUS_ROLLEDBACK); }
transactionManager.enlistForDurableTwoPhase(bridgeDurableParticipant, participantId); BridgeVolatileParticipant bridgeVolatileParticipant = new BridgeVolatileParticipant(externalTxId, xid); transactionManager.enlistForVolatileTwoPhase(bridgeVolatileParticipant, new Uid().toString());
/** * Perform afterCompletion cleanup activities such as releasing resources. * * Caution: may not be invoked in crash recovery situations. */ public void commit() throws WrongStateException, SystemException { txbridgeLogger.logger.trace("BridgeVolatileParticipant.commit(Xid="+xid+")"); afterCompletion(Status.STATUS_COMMITTED); }