Search in sources :

Example 1 with CompletedParticipant

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

the class BAParticipantProcessor method participantCancelCompletedRace.

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

Example 2 with CompletedParticipant

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

the class BAParticipantProcessor method unsolicitedComplete.

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

Example 3 with CompletedParticipant

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

the class BAParticipantProcessor method participantCompleteClose.

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

Example 4 with CompletedParticipant

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

the class BAParticipantProcessor method compensate.

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

Aggregations

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