private static void throwException(QName subcode, String detail, SOAPFaultException sfe, Fault fault) throws CannotRegisterException, InvalidProtocolException, InvalidStateException, SoapFault { if (CoordinationConstants.WSCOOR_ERROR_CODE_CANNOT_REGISTER_QNAME.equals(subcode)) { throw new CannotRegisterException(detail); } else if (CoordinationConstants.WSCOOR_ERROR_CODE_INVALID_PROTOCOL_QNAME.equals(subcode)) { throw new InvalidProtocolException(detail); } else if (CoordinationConstants.WSCOOR_ERROR_CODE_INVALID_STATE_QNAME.equals(subcode)) { throw new InvalidStateException(detail); } if (sfe != null) { throw SoapFault11.create(sfe); } else { throw SoapFault11.fromFault(fault); } }
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 enlistForDurableTwoPhase (Durable2PCParticipant tpp, String id) throws WrongStateException, UnknownTransactionException, SystemException { try { final W3CEndpointReference participant = getParticipant(id, isCurrentContextSecure()); final W3CEndpointReference coordinator = registerParticipant(participant, AtomicTransactionConstants.WSAT_SUB_PROTOCOL_DURABLE_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 throw new UnknownTransactionException(); } }
public void begin (int timeout) throws WrongStateException, SystemException { try { if (_ctxManager.currentTransaction() != null) throw new WrongStateException(); Context ctx = startTransaction(timeout, null); _ctxManager.resume(new TxContextImple(ctx)); } catch (InvalidCreateParametersException ex) { tidyup(); throw new SystemException(ex.toString()); } catch (UnknownTransactionException ex) { tidyup(); throw new SystemException(ex.toString()); } catch (SystemException ex) { tidyup(); throw ex; } }
throw new CannotRegisterException(message) ; throw new InvalidProtocolException(message) ; throw new InvalidStateException(message) ;
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 begin (int timeout) throws WrongStateException, SystemException { try { if (_ctxManager.currentTransaction() != null) throw new WrongStateException(); Context ctx = startTransaction(timeout, null); _ctxManager.resume(new TxContextImple(ctx)); } catch (InvalidCreateParametersException ex) { tidyup(); throw new SystemException(ex.toString()); } catch (UnknownTransactionException ex) { tidyup(); throw new SystemException(ex.toString()); } catch (SystemException ex) { tidyup(); throw ex; } }
public void enlistForDurableTwoPhase (Durable2PCParticipant tpp, String id) throws WrongStateException, UnknownTransactionException, SystemException { try { final W3CEndpointReference participant = getParticipant(id, isCurrentContextSecure()); final W3CEndpointReference coordinator = registerParticipant(participant, AtomicTransactionConstants.WSAT_SUB_PROTOCOL_DURABLE_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 throw new UnknownTransactionException(); } }
throw new CannotRegisterException(message) ; throw new InvalidProtocolException(message) ; throw new InvalidStateException(message) ;
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 begin (int timeout) throws WrongStateException, SystemException { try { if (_ctxManager.currentTransaction() != null) throw new WrongStateException(); Context ctx = startTransaction(timeout, null); _ctxManager.resume(new TxContextImple(ctx)); } catch (InvalidCreateParametersException ex) { tidyup(); throw new SystemException(ex.toString()); } catch (UnknownTransactionException ex) { tidyup(); throw new SystemException(ex.toString()); } catch (SystemException ex) { tidyup(); throw ex; } }
public void enlistForDurableTwoPhase (Durable2PCParticipant tpp, String id) throws WrongStateException, UnknownTransactionException, SystemException { try { final W3CEndpointReference participant = getParticipant(id, isCurrentContextSecure()); final W3CEndpointReference coordinator = registerParticipant(participant, AtomicTransactionConstants.WSAT_SUB_PROTOCOL_DURABLE_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 throw new UnknownTransactionException(); } }
throw new CannotRegisterException(message) ; throw new InvalidProtocolException(message) ; throw new InvalidStateException(message) ;
throw new SystemException(ex.toString()); ex.printStackTrace();
public void begin (int timeout) throws WrongStateException, SystemException { try { if (_ctxManager.currentTransaction() != null) throw new WrongStateException(); Context ctx = startTransaction(timeout, null); _ctxManager.resume(new TxContextImple(ctx)); } catch (InvalidCreateParametersException ex) { tidyup(); throw new SystemException(ex.toString()); } catch (UnknownTransactionException ex) { tidyup(); throw new SystemException(ex.toString()); } catch (SystemException ex) { tidyup(); throw ex; } }
throw new SystemException(ex.toString()); ex.printStackTrace();
public void begin (int timeout) throws WrongStateException, SystemException { try { if (_ctxManager.currentTransaction() != null) throw new WrongStateException(); Context ctx = startTransaction(timeout, null); _ctxManager.resume(new TxContextImple(ctx)); } catch (InvalidCreateParametersException ex) { tidyup(); throw new SystemException(ex.toString()); } catch (UnknownTransactionException ex) { tidyup(); throw new SystemException(ex.toString()); } catch (SystemException ex) { tidyup(); throw ex; } }
throw new SystemException(ex.toString()); ex.printStackTrace();
public void begin (int timeout) throws WrongStateException, SystemException { try { if (_ctxManager.currentTransaction() != null) throw new WrongStateException(); Context ctx = startTransaction(timeout, null); _ctxManager.resume(new TxContextImple(ctx)); } catch (InvalidCreateParametersException ex) { tidyup(); throw new SystemException(ex.toString()); } catch (UnknownTransactionException ex) { tidyup(); throw new SystemException(ex.toString()); } catch (SystemException ex) { tidyup(); throw ex; } }
public void begin (int timeout) throws WrongStateException, SystemException { try { if (_ctxManager.currentTransaction() != null) throw new WrongStateException(); Context ctx = startTransaction(timeout, null); _ctxManager.resume(new TxContextImple(ctx)); enlistCompletionParticipants(); } catch (InvalidCreateParametersException ex) { tidyup(); throw new SystemException(ex.toString()); } catch (UnknownTransactionException ex) { tidyup(); throw new SystemException(ex.toString()); } catch (SystemException ex) { tidyup(); throw ex; } }