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());
}
}
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());
}
}
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());
}
}
Aggregations