public void enlistForVolatileTwoPhase (Volatile2PCParticipant tpp, String id) throws WrongStateException, UnknownTransactionException, SystemException { try { final W3CEndpointReference participant = getParticipant(id, isCurrentContextSecure()); final W3CEndpointReference coordinator = registerParticipant(participant, AtomicTransactionConstants.WSAT_SUB_PROTOCOL_VOLATILE_2PC); ParticipantProcessor.getProcessor().activateParticipant(new ParticipantEngine(tpp, id, coordinator), id) ; } catch (com.arjuna.wsc.InvalidProtocolException ex) { throw new SystemException(ex.toString()); } catch (com.arjuna.wsc.InvalidStateException ex) { throw new WrongStateException(); } catch (com.arjuna.wsc.CannotRegisterException ex) { // cause could actually be no activity or already registered ex.printStackTrace(); throw new UnknownTransactionException(); } }
public void enlistForVolatileTwoPhase (Volatile2PCParticipant tpp, String id) throws WrongStateException, UnknownTransactionException, SystemException { try { final W3CEndpointReference participant = getParticipant(id, isCurrentContextSecure()); final W3CEndpointReference coordinator = registerParticipant(participant, AtomicTransactionConstants.WSAT_SUB_PROTOCOL_VOLATILE_2PC); ParticipantProcessor.getProcessor().activateParticipant(new ParticipantEngine(tpp, id, coordinator), id) ; } catch (com.arjuna.wsc.InvalidProtocolException ex) { throw new SystemException(ex.toString()); } catch (com.arjuna.wsc.InvalidStateException ex) { throw new WrongStateException(); } catch (com.arjuna.wsc.CannotRegisterException ex) { // cause could actually be no activity or already registered ex.printStackTrace(); throw new UnknownTransactionException(); } }
public void enlistForVolatileTwoPhase (Volatile2PCParticipant tpp, String id) throws WrongStateException, UnknownTransactionException, SystemException { try { final W3CEndpointReference participant = getParticipant(id, isCurrentContextSecure()); final W3CEndpointReference coordinator = registerParticipant(participant, AtomicTransactionConstants.WSAT_SUB_PROTOCOL_VOLATILE_2PC); ParticipantProcessor.getProcessor().activateParticipant(new ParticipantEngine(tpp, id, coordinator), id) ; } catch (com.arjuna.wsc.InvalidProtocolException ex) { throw new SystemException(ex.toString()); } catch (com.arjuna.wsc.InvalidStateException ex) { throw new WrongStateException(); } catch (com.arjuna.wsc.CannotRegisterException ex) { // cause could actually be no activity or already registered ex.printStackTrace(); throw new UnknownTransactionException(); } }