Search in sources :

Example 1 with FailParticipant

use of com.jboss.transaction.txinterop.webservices.bainterop.participant.FailParticipant in project narayana by jbosstm.

the class BAParticipantProcessor method fail.

/**
 * Execute the Fail
 * @param map The current addressing context.
 *
 * @throws SoapFault11 for errors during processing
 */
public void fail(final CoordinationContextType coordinationContext, final MAP map) throws SoapFault11 {
    try {
        final FailParticipant participant = new FailParticipant();
        final ParticipantCompletionParticipantEngine engine = BAInteropUtil.registerParticipantCompletion(coordinationContext, participant, new Uid().toString());
        participant.setEngine(engine);
        participant.initialiseTimeout();
    } catch (final Throwable th) {
        throw new SoapFault11(th);
    }
}
Also used : Uid(com.arjuna.ats.arjuna.common.Uid) ParticipantCompletionParticipantEngine(com.arjuna.wst11.messaging.engines.ParticipantCompletionParticipantEngine) FailParticipant(com.jboss.transaction.txinterop.webservices.bainterop.participant.FailParticipant) SoapFault11(com.arjuna.webservices11.SoapFault11)

Aggregations

Uid (com.arjuna.ats.arjuna.common.Uid)1 SoapFault11 (com.arjuna.webservices11.SoapFault11)1 ParticipantCompletionParticipantEngine (com.arjuna.wst11.messaging.engines.ParticipantCompletionParticipantEngine)1 FailParticipant (com.jboss.transaction.txinterop.webservices.bainterop.participant.FailParticipant)1