public void afterCompletion (int status) throws SystemException { try { _theRegistrar.disassociate(_cleanupId); } catch (Exception ex) { ex.printStackTrace(); throw new SystemException(ex.toString()); } }
public void fail (final QName exceptionIdentifier) throws SystemException { try { _theTx.participantFaulted(_participantId); } catch (com.arjuna.mw.wscf.exceptions.InvalidParticipantException ex) { throw new SystemException("UnknownParticipantException"); } catch (com.arjuna.mw.wsas.exceptions.SystemException ex) { throw new SystemException(ex.toString()); } }
public void complete() throws WrongStateException, SystemException { if (!recovered) { // the coordinator will send complete to all participants and then // also run phase one commit. the former may throw an exception. // if the latter succeeds the tx state will be COMMITTING whereas // if it fails it will be ABORTED. try { coordinator.complete(); } catch (com.arjuna.mw.wsas.exceptions.WrongStateException wse) { throw new WrongStateException(wse.getMessage()); } catch (com.arjuna.mw.wsas.exceptions.SystemException se) { throw new SystemException(se.getMessage()); } // if status is COMMITTING then we return allowing the participant to be logged // if status is ABORTED then the participant must fail avoiding any logging if (coordinator.status() == ActionStatus.ABORTED) { manager.fail(BusinessActivityConstants.WSBA_ELEMENT_FAIL_QNAME); } else { // null out the manager so we don't attempt to save it to the log manager = null; } } else { // we should never get asked to complete a recovered activity throw new WrongStateException(); } }
public void complete() throws WrongStateException, SystemException { if (!recovered) { // the coordinator will send complete to all participants and then // also run phase one commit. the former may throw an exception. // if the latter succeeds the tx state will be COMMITTING whereas // if it fails it will be ABORTED. try { coordinator.complete(); } catch (com.arjuna.mw.wsas.exceptions.WrongStateException wse) { throw new WrongStateException(wse.getMessage()); } catch (com.arjuna.mw.wsas.exceptions.SystemException se) { throw new SystemException(se.getMessage()); } // if status is COMMITTING then we return allowing the participant to be logged // if status is ABORTED then the participant must fail avoiding any logging if (coordinator.status() == ActionStatus.ABORTED) { manager.fail(BusinessActivityConstants.WSBA_ELEMENT_FAIL_QNAME); } else { // null out the manager so we don't attempt to save it to the log manager = null; } } else { // we should never get asked to complete a recovered activity throw new WrongStateException(); } }
public void fail (final QName exceptionIdentifier) throws SystemException { try { _theTx.participantFaulted(_participantId); } catch (com.arjuna.mw.wscf.exceptions.InvalidParticipantException ex) { throw new SystemException("UnknownParticipantException"); } catch (com.arjuna.mw.wsas.exceptions.SystemException ex) { throw new SystemException(ex.toString()); } }
public void afterCompletion (int status) throws SystemException { try { _theRegistrar.disassociate(_cleanupId); } catch (Exception ex) { ex.printStackTrace(); throw new SystemException(ex.toString()); } }
public void complete() throws WrongStateException, SystemException { if (!recovered) { // the coordinator will send complete to all participants and then // also run phase one commit. the former may throw an exception. // if the latter succeeds the tx state will be COMMITTING whereas // if it fails it will be ABORTED. try { coordinator.complete(); } catch (com.arjuna.mw.wsas.exceptions.WrongStateException wse) { throw new WrongStateException(wse.getMessage()); } catch (com.arjuna.mw.wsas.exceptions.SystemException se) { throw new SystemException(se.getMessage()); } // if status is COMMITTING then we return allowing the participant to be logged // if status is ABORTED then the participant must fail avoiding any logging if (coordinator.status() == ActionStatus.ABORTED) { manager.fail(BusinessActivityConstants.WSBA_ELEMENT_FAIL_QNAME); } else { // null out the manager so we don't attempt to save it to the log manager = null; } } else { // we should never get asked to complete a recovered activity throw new WrongStateException(); } }
public void fail (final QName exceptionIdentifier) throws SystemException { try { _theTx.participantFaulted(_participantId); } catch (com.arjuna.mw.wscf.exceptions.InvalidParticipantException ex) { throw new SystemException("UnknownParticipantException"); } catch (com.arjuna.mw.wsas.exceptions.SystemException ex) { throw new SystemException(ex.toString()); } }
public void afterCompletion (int status) throws SystemException { try { _theRegistrar.disassociate(_cleanupId); } catch (Exception ex) { ex.printStackTrace(); throw new SystemException(ex.toString()); } }
result = coordinator.close(); } catch (com.arjuna.mw.wsas.exceptions.SystemException se) { throw new SystemException(se.getMessage());
public void cannotComplete () throws WrongStateException, UnknownTransactionException, SystemException { try { _theTx.participantCannotComplete(_participantId); } catch (com.arjuna.mw.wscf.exceptions.InvalidParticipantException ex) { throw new SystemException("UnknownParticipantException"); } catch (com.arjuna.mw.wsas.exceptions.WrongStateException ex) { throw new WrongStateException(); } catch (com.arjuna.mw.wsas.exceptions.SystemException ex) { throw new SystemException(ex.toString()); } }
public void afterCompletion (int status) throws SystemException { try { _theRegistrar.disassociate(_cleanupId); } catch (Exception ex) { ex.printStackTrace(); throw new SystemException(ex.toString()); } }
result = coordinator.close(); } catch (com.arjuna.mw.wsas.exceptions.SystemException se) { throw new SystemException(se.getMessage());
public void exit () throws WrongStateException, UnknownTransactionException, SystemException { try { _theTx.delistParticipant(_participantId); } catch (com.arjuna.mw.wscf.exceptions.InvalidParticipantException ex) { throw new SystemException("UnknownParticipantException"); } catch (com.arjuna.mw.wsas.exceptions.WrongStateException ex) { throw new WrongStateException(); } catch (com.arjuna.mw.wsas.exceptions.SystemException ex) { throw new SystemException(ex.toString()); } }
public void afterCompletion (int status) throws SystemException { try { _theRegistrar.disassociate(_cleanupId); } catch (Exception ex) { ex.printStackTrace(); throw new SystemException(ex.toString()); } }