Search in sources :

Example 21 with SoapFault11

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

the class ParticipantProcessor method earlyAborted.

/**
 * Execute the EarlyAborted
 * @param map The current addressing context.
 * @throws SoapFault11 for errors during processing
 */
public void earlyAborted(final CoordinationContextType coordinationContext, final MAP map) throws SoapFault11 {
    try {
        final ParticipantEngine engine = InteropUtil.registerVolatile2PC(coordinationContext, new CommitVolatile2PCParticipant(), new Uid().toString());
        InteropUtil.registerDurable2PC(coordinationContext, new CommitDurable2PCParticipant(), new Uid().toString());
        engine.earlyRollback();
    } catch (final Throwable th) {
        throw new SoapFault11(th);
    }
}
Also used : CommitVolatile2PCParticipant(com.jboss.transaction.wstf.webservices.sc007.participant.CommitVolatile2PCParticipant) Uid(com.arjuna.ats.arjuna.common.Uid) CommitDurable2PCParticipant(com.jboss.transaction.wstf.webservices.sc007.participant.CommitDurable2PCParticipant) ParticipantEngine(com.arjuna.wst11.messaging.engines.ParticipantEngine) SoapFault11(com.arjuna.webservices11.SoapFault11)

Example 22 with SoapFault11

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

the class ParticipantProcessor method retryPreparedCommit.

/**
 * Execute the RetryPreparedCommit
 * @param map The current addressing context.
 * @throws SoapFault11 for errors during processing
 */
public void retryPreparedCommit(final CoordinationContextType coordinationContext, final MAP map) throws SoapFault11 {
    try {
        InteropUtil.registerDurable2PC(coordinationContext, new CommitDurable2PCParticipant(), new Uid().toString());
        InteropUtil.registerDurable2PC(coordinationContext, new CommitDurable2PCParticipant(), new Uid().toString());
    } catch (final Throwable th) {
        throw new SoapFault11(th);
    }
}
Also used : Uid(com.arjuna.ats.arjuna.common.Uid) CommitDurable2PCParticipant(com.jboss.transaction.wstf.webservices.sc007.participant.CommitDurable2PCParticipant) SoapFault11(com.arjuna.webservices11.SoapFault11)

Example 23 with SoapFault11

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

the class ParticipantProcessor method earlyReadonly.

/**
 * Execute the EarlyReadonly
 * @param map The current addressing context.
 * @throws SoapFault11 for errors during processing
 */
public void earlyReadonly(final CoordinationContextType coordinationContext, final MAP map) throws SoapFault11 {
    try {
        final ParticipantEngine engine = InteropUtil.registerVolatile2PC(coordinationContext, new CommitVolatile2PCParticipant(), new Uid().toString());
        InteropUtil.registerDurable2PC(coordinationContext, new CommitDurable2PCParticipant(), new Uid().toString());
        engine.earlyReadonly();
    } catch (final Throwable th) {
        throw new SoapFault11(th);
    }
}
Also used : CommitVolatile2PCParticipant(com.jboss.transaction.wstf.webservices.sc007.participant.CommitVolatile2PCParticipant) Uid(com.arjuna.ats.arjuna.common.Uid) CommitDurable2PCParticipant(com.jboss.transaction.wstf.webservices.sc007.participant.CommitDurable2PCParticipant) ParticipantEngine(com.arjuna.wst11.messaging.engines.ParticipantEngine) SoapFault11(com.arjuna.webservices11.SoapFault11)

Example 24 with SoapFault11

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

the class ParticipantProcessor method readonly.

/**
 * Execute the Readonly
 * @param map The current addressing context.
 * @throws SoapFault11 for errors during processing
 */
public void readonly(final CoordinationContextType coordinationContext, final MAP map) throws SoapFault11 {
    try {
        InteropUtil.registerDurable2PC(coordinationContext, new ReadonlyDurable2PCParticipant(), new Uid().toString());
        InteropUtil.registerDurable2PC(coordinationContext, new CommitDurable2PCParticipant(), new Uid().toString());
    } catch (final Throwable th) {
        throw new SoapFault11(th);
    }
}
Also used : Uid(com.arjuna.ats.arjuna.common.Uid) CommitDurable2PCParticipant(com.jboss.transaction.wstf.webservices.sc007.participant.CommitDurable2PCParticipant) ReadonlyDurable2PCParticipant(com.jboss.transaction.wstf.webservices.sc007.participant.ReadonlyDurable2PCParticipant) SoapFault11(com.arjuna.webservices11.SoapFault11)

Example 25 with SoapFault11

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

the class ParticipantProcessor method replayCommit.

/**
 * Execute the ReplayCommit
 * @param map The current addressing context.
 * @throws SoapFault11 for errors during processing
 */
public void replayCommit(final CoordinationContextType coordinationContext, final MAP map) throws SoapFault11 {
    try {
        final CommitFailureRecoveryDurable2PCParticipant participant = new CommitFailureRecoveryDurable2PCParticipant();
        final ParticipantEngine engine = InteropUtil.registerDurable2PC(coordinationContext, participant, new Uid().toString());
        participant.setEngine(engine);
    } catch (final Throwable th) {
        throw new SoapFault11(th);
    }
}
Also used : Uid(com.arjuna.ats.arjuna.common.Uid) ParticipantEngine(com.arjuna.wst11.messaging.engines.ParticipantEngine) SoapFault11(com.arjuna.webservices11.SoapFault11) CommitFailureRecoveryDurable2PCParticipant(com.jboss.transaction.wstf.webservices.sc007.participant.CommitFailureRecoveryDurable2PCParticipant)

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