Search in sources :

Example 6 with InvalidActivityException

use of com.arjuna.mw.wsas.exceptions.InvalidActivityException in project narayana by jbosstm.

the class BAParticipantManagerImple method cannotComplete.

public void cannotComplete() throws WrongStateException, UnknownTransactionException, SystemException {
    if (wstxLogger.logger.isTraceEnabled()) {
        wstxLogger.logger.trace(getClass().getSimpleName() + ".cannotComplete. Participant id: " + _participantId);
    }
    try {
        if (_hier == null)
            throw new UnknownTransactionException();
        _coordManager.resume(_hier);
        _coordManager.participantCannotComplete(_participantId);
        _coordManager.suspend();
    } catch (final InvalidActivityException iae) {
        throw new SystemException("UnknownTransactionException");
    } catch (final UnknownTransactionException ute) {
        throw new SystemException("UnknownTransactionException");
    } 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.NoActivityException ex) {
        throw new SystemException("UnknownTransactionException");
    } catch (com.arjuna.mw.wsas.exceptions.SystemException ex) {
        throw new SystemException(ex.toString());
    }
}
Also used : InvalidActivityException(com.arjuna.mw.wsas.exceptions.InvalidActivityException) UnknownTransactionException(com.arjuna.wst.UnknownTransactionException) SystemException(com.arjuna.wst.SystemException) WrongStateException(com.arjuna.wst.WrongStateException)

Example 7 with InvalidActivityException

use of com.arjuna.mw.wsas.exceptions.InvalidActivityException in project narayana by jbosstm.

the class BAParticipantManagerImple method completed.

public void completed() throws WrongStateException, UnknownTransactionException, SystemException {
    if (wstxLogger.logger.isTraceEnabled()) {
        wstxLogger.logger.trace(getClass().getSimpleName() + ".completed. Participant id: " + _participantId);
    }
    try {
        if (_hier == null)
            throw new UnknownTransactionException();
        _coordManager.resume(_hier);
        _coordManager.participantCompleted(_participantId);
        _coordManager.suspend();
    } catch (com.arjuna.mw.wsas.exceptions.NoActivityException ex) {
        throw new UnknownTransactionException();
    } catch (com.arjuna.mw.wscf.exceptions.InvalidParticipantException ex) {
        throw new SystemException("UnknownParticipantException");
    } catch (com.arjuna.mw.wsas.exceptions.WrongStateException ex) {
        throw new WrongStateException();
    } catch (InvalidActivityException ex) {
        throw new UnknownTransactionException();
    } catch (com.arjuna.mw.wsas.exceptions.SystemException ex) {
        throw new SystemException(ex.toString());
    }
}
Also used : InvalidActivityException(com.arjuna.mw.wsas.exceptions.InvalidActivityException) UnknownTransactionException(com.arjuna.wst.UnknownTransactionException) SystemException(com.arjuna.wst.SystemException) WrongStateException(com.arjuna.wst.WrongStateException)

Example 8 with InvalidActivityException

use of com.arjuna.mw.wsas.exceptions.InvalidActivityException in project narayana by jbosstm.

the class BAParticipantManagerImple method exit.

public void exit() throws WrongStateException, UnknownTransactionException, SystemException {
    try {
        if (wstxLogger.logger.isTraceEnabled()) {
            wstxLogger.logger.trace(getClass().getSimpleName() + ".exit. Participant id: " + _participantId);
        }
        if (_hier == null)
            throw new UnknownTransactionException();
        _coordManager.resume(_hier);
        _coordManager.delistParticipant(_participantId);
        _coordManager.suspend();
    } catch (com.arjuna.mw.wsas.exceptions.NoActivityException ex) {
        throw new UnknownTransactionException();
    } catch (com.arjuna.mw.wscf.exceptions.InvalidParticipantException ex) {
        throw new SystemException("UnknownParticipantException");
    } catch (com.arjuna.mw.wsas.exceptions.WrongStateException ex) {
        throw new WrongStateException();
    } catch (InvalidActivityException ex) {
        throw new UnknownTransactionException();
    } catch (com.arjuna.mw.wsas.exceptions.SystemException ex) {
        throw new SystemException(ex.toString());
    }
}
Also used : InvalidActivityException(com.arjuna.mw.wsas.exceptions.InvalidActivityException) UnknownTransactionException(com.arjuna.wst.UnknownTransactionException) SystemException(com.arjuna.wst.SystemException) WrongStateException(com.arjuna.wst.WrongStateException)

Aggregations

InvalidActivityException (com.arjuna.mw.wsas.exceptions.InvalidActivityException)8 HLS (com.arjuna.mw.wsas.activity.HLS)4 InvalidTimeoutException (com.arjuna.mw.wsas.exceptions.InvalidTimeoutException)4 NoActivityException (com.arjuna.mw.wsas.exceptions.NoActivityException)4 NoPermissionException (com.arjuna.mw.wsas.exceptions.NoPermissionException)4 ProtocolViolationException (com.arjuna.mw.wsas.exceptions.ProtocolViolationException)4 SystemException (com.arjuna.mw.wsas.exceptions.SystemException)4 WrongStateException (com.arjuna.mw.wsas.exceptions.WrongStateException)4 SystemException (com.arjuna.wst.SystemException)4 UnknownTransactionException (com.arjuna.wst.UnknownTransactionException)4 Outcome (com.arjuna.mw.wsas.activity.Outcome)3 ActiveChildException (com.arjuna.mw.wsas.exceptions.ActiveChildException)3 ActivityImple (com.arjuna.mwlabs.wsas.activity.ActivityImple)3 WrongStateException (com.arjuna.wst.WrongStateException)3 EmptyStackException (java.util.EmptyStackException)3 HLSException (com.arjuna.mw.wsas.exceptions.HLSException)1 ActivityHandleImple (com.arjuna.mwlabs.wsas.activity.ActivityHandleImple)1 ActivityHierarchyImple (com.arjuna.mwlabs.wsas.activity.ActivityHierarchyImple)1