Search in sources :

Example 81 with SoapFault11

use of com.arjuna.webservices11.SoapFault11 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)

Example 82 with SoapFault11

use of com.arjuna.webservices11.SoapFault11 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 83 with SoapFault11

use of com.arjuna.webservices11.SoapFault11 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)

Example 84 with SoapFault11

use of com.arjuna.webservices11.SoapFault11 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 85 with SoapFault11

use of com.arjuna.webservices11.SoapFault11 in project narayana by jbosstm.

the class BAParticipantProcessor method exit.

/**
 * Execute the Exit
 * @param map The current addressing context.
 *
 * @throws SoapFault11 for errors during processing
 */
public void exit(final CoordinationContextType coordinationContext, final MAP map) throws SoapFault11 {
    try {
        final ExitParticipant participant = new ExitParticipant();
        final CoordinatorCompletionParticipantEngine engine = BAInteropUtil.registerCoordinatorCompletion(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) CoordinatorCompletionParticipantEngine(com.arjuna.wst11.messaging.engines.CoordinatorCompletionParticipantEngine) SoapFault11(com.arjuna.webservices11.SoapFault11) ExitParticipant(com.jboss.transaction.txinterop.webservices.bainterop.participant.ExitParticipant)

Aggregations

SoapFault11 (com.arjuna.webservices11.SoapFault11)104 MAP (org.jboss.ws.api.addressing.MAP)74 MessageContext (javax.xml.ws.handler.MessageContext)54 Action (javax.xml.ws.Action)51 CoordinationContextType (org.oasis_open.docs.ws_tx.wscoor._2006._06.CoordinationContextType)42 RequestWrapper (javax.xml.ws.RequestWrapper)38 SoapFault (com.arjuna.webservices.SoapFault)28 Uid (com.arjuna.ats.arjuna.common.Uid)22 InstanceIdentifier (com.arjuna.webservices11.wsarj.InstanceIdentifier)18 ArjunaContext (com.arjuna.webservices11.wsarj.ArjunaContext)10 Fault (org.xmlsoap.schemas.soap.envelope.Fault)10 Task (com.arjuna.services.framework.task.Task)9 QName (javax.xml.namespace.QName)8 SoapFaultType (com.arjuna.webservices.SoapFaultType)7 Test (org.junit.Test)7 ParticipantEngine (com.arjuna.wst11.messaging.engines.ParticipantEngine)6 SOAPBinding (javax.jws.soap.SOAPBinding)6 SystemException (com.arjuna.wst.SystemException)5 UnknownTransactionException (com.arjuna.wst.UnknownTransactionException)5 ParticipantCompletionParticipantEngine (com.arjuna.wst11.messaging.engines.ParticipantCompletionParticipantEngine)5