Search in sources :

Example 1 with FailedCompensateParticipant

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

the class BAParticipantProcessor method participantCompensationFail.

/**
 * Execute the ParticipantCompensationFail
 * @param map The current addressing context.
 *
 * @throws SoapFault11 for errors during processing
 */
public void participantCompensationFail(final CoordinationContextType coordinationContext, final MAP map) throws SoapFault11 {
    try {
        final FailedCompensateParticipant participant = new FailedCompensateParticipant();
        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) SoapFault11(com.arjuna.webservices11.SoapFault11) FailedCompensateParticipant(com.jboss.transaction.txinterop.webservices.bainterop.participant.FailedCompensateParticipant)

Aggregations

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