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); } }
private final void enlistCompletionParticipants () throws WrongStateException, UnknownTransactionException, SystemException { TransactionManagerImple tm = (TransactionManagerImple) TransactionManager.getTransactionManager(); final TxContextImple currentTx = (TxContextImple) tm.currentTransaction(); if (currentTx == null) throw new UnknownTransactionException(); final String id = currentTx.identifier(); W3CEndpointReference completionCoordinator = null; try { completionCoordinator = tm.registerParticipant(null, AtomicTransactionConstants.WSAT_SUB_PROTOCOL_COMPLETION_RPC); } catch (InvalidProtocolException ex) { ex.printStackTrace(); throw new SystemException(ex.toString()); } catch (InvalidStateException ex) { throw new WrongStateException(); } catch (CannotRegisterException ex) { // cause could actually be no activity or already registered throw new UnknownTransactionException(); } _completionCoordinators.put(id, completionCoordinator); }
throw new SystemException(ex.toString());
throw new SystemException(ex.toString());
wstxLogger.i18NLogger.warn_mwlabs_wst_at_Registrar11Imple_1(AtomicTransactionConstants.WSAT_PROTOCOL, protocolIdentifier); throw new InvalidProtocolException();
private final void enlistCompletionParticipants () throws WrongStateException, UnknownTransactionException, SystemException { TransactionManagerImple tm = (TransactionManagerImple) TransactionManager.getTransactionManager(); final TxContextImple currentTx = (TxContextImple) tm.currentTransaction(); if (currentTx == null) throw new UnknownTransactionException(); final String id = currentTx.identifier(); W3CEndpointReference completionCoordinator = null; try { completionCoordinator = tm.registerParticipant(null, AtomicTransactionConstants.WSAT_SUB_PROTOCOL_COMPLETION_RPC); } catch (InvalidProtocolException ex) { ex.printStackTrace(); throw new SystemException(ex.toString()); } catch (InvalidStateException ex) { throw new WrongStateException(); } catch (CannotRegisterException ex) { // cause could actually be no activity or already registered throw new UnknownTransactionException(); } _completionCoordinators.put(id, completionCoordinator); }
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(); } }
wstxLogger.i18NLogger.warn_mwlabs_wst_at_Registrar11Imple_1(AtomicTransactionConstants.WSAT_PROTOCOL, protocolIdentifier); throw new InvalidProtocolException();
private final void enlistCompletionParticipants () throws WrongStateException, UnknownTransactionException, SystemException { TransactionManagerImple tm = (TransactionManagerImple) TransactionManager.getTransactionManager(); final TxContextImple currentTx = (TxContextImple) tm.currentTransaction(); if (currentTx == null) throw new UnknownTransactionException(); final String id = currentTx.identifier(); W3CEndpointReference completionCoordinator = null; try { completionCoordinator = tm.registerParticipant(null, AtomicTransactionConstants.WSAT_SUB_PROTOCOL_COMPLETION_RPC); } catch (InvalidProtocolException ex) { ex.printStackTrace(); throw new SystemException(ex.toString()); } catch (InvalidStateException ex) { throw new WrongStateException(); } catch (CannotRegisterException ex) { // cause could actually be no activity or already registered throw new UnknownTransactionException(); } _completionCoordinators.put(id, completionCoordinator); }
throw new SystemException(ex.toString());
wstxLogger.i18NLogger.warn_mwlabs_wst_at_Registrar11Imple_1(AtomicTransactionConstants.WSAT_PROTOCOL, protocolIdentifier); throw new InvalidProtocolException();
ex.printStackTrace(); throw new SystemException(ex.toString());
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 InvalidProtocolException(); wstxLogger.i18NLogger.warn_mwlabs_wst_at_Registrar11Imple_1(AtomicTransactionConstants.WSAT_PROTOCOL, protocolIdentifier); throw new InvalidProtocolException();
ex.printStackTrace(); throw new SystemException(ex.toString());
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 InvalidProtocolException(); wstxLogger.i18NLogger.warn_mwlabs_wst_at_Registrar11Imple_1(AtomicTransactionConstants.WSAT_PROTOCOL, protocolIdentifier); throw new InvalidProtocolException();
ex.printStackTrace(); throw new SystemException(ex.toString());
throw new SystemException(ex.toString());
throw new InvalidProtocolException(); wstxLogger.i18NLogger.warn_mwlabs_wst_at_Registrar11Imple_1(AtomicTransactionConstants.WSAT_PROTOCOL, protocolIdentifier); throw new InvalidProtocolException();