if(participant.getXid().equals(xid)) { return Vote.LEAVE_ALONE;
/** * Release any BridgeDurableParticipant instances that have been driven * through to completion by their parent XTS transaction. */ private void cleanupRecoveredParticipants() { txbridgeLogger.logger.trace("InboundBridgeRecoveryManager.cleanupRecoveredParticipants()"); synchronized(participantsAwaitingRecovery) { Iterator<org.jboss.jbossts.txbridge.inbound.BridgeDurableParticipant> iter = participantsAwaitingRecovery.iterator(); while(iter.hasNext()) { BridgeDurableParticipant participant = iter.next(); if(!participant.isAwaitingRecovery()) { iter.remove(); } } } }
/** * The participant should make permanent the work that it controls. * * @throws WrongStateException * @throws SystemException */ public void commit() throws WrongStateException, SystemException { txbridgeLogger.logger.trace("BridgeDurableParticipant.commit(Xid="+xid+")"); try { xaTerminator.commit(xid, false); txbridgeLogger.logger.trace("commit on Xid="+xid+" OK"); } catch (XAException e) { txbridgeLogger.i18NLogger.error_ibdp_commitfailed(XAHelper.xidToString(xid), e); } finally { cleanupRefs(); } }
BridgeDurableParticipant bridgeDurableParticipant = new BridgeDurableParticipant(externalTxId, xid);
/** * The participant should undo the work that it controls. The participant * will then return an indication of whether or not it succeeded.. * * @throws WrongStateException * @throws SystemException */ public void rollback() throws WrongStateException, SystemException { txbridgeLogger.logger.trace("BridgeDurableParticipant.rollback(Xid="+xid+")"); try { xaTerminator.rollback(xid); txbridgeLogger.logger.trace("rollback on Xid="+xid+" OK"); } catch (XAException e) { txbridgeLogger.i18NLogger.error_ibdp_rollbackfailed(XAHelper.xidToString(xid), e); } finally { cleanupRefs(); } }
cleanupRefs(); txbridgeLogger.logger.trace("prepare on Xid="+xid+" returning ReadOnly"); return new ReadOnly(); cleanupRefs(); txbridgeLogger.i18NLogger.warn_ibdp_aborted(XAHelper.xidToString(xid), e); return new Aborted();