Search in sources :

Example 6 with ParticipantEngine

use of com.arjuna.wst11.messaging.engines.ParticipantEngine in project narayana by jbosstm.

the class ATParticipantProcessor 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 = ATInteropUtil.registerVolatile2PC(coordinationContext, new CommitVolatile2PCParticipant(), new Uid().toString());
        ATInteropUtil.registerDurable2PC(coordinationContext, new CommitDurable2PCParticipant(), new Uid().toString());
        engine.earlyRollback();
    } catch (final Throwable th) {
        throw new SoapFault11(th);
    }
}
Also used : CommitVolatile2PCParticipant(com.jboss.transaction.txinterop.webservices.atinterop.participant.CommitVolatile2PCParticipant) Uid(com.arjuna.ats.arjuna.common.Uid) CommitDurable2PCParticipant(com.jboss.transaction.txinterop.webservices.atinterop.participant.CommitDurable2PCParticipant) ParticipantEngine(com.arjuna.wst11.messaging.engines.ParticipantEngine) SoapFault11(com.arjuna.webservices11.SoapFault11)

Example 7 with ParticipantEngine

use of com.arjuna.wst11.messaging.engines.ParticipantEngine 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 8 with ParticipantEngine

use of com.arjuna.wst11.messaging.engines.ParticipantEngine 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 9 with ParticipantEngine

use of com.arjuna.wst11.messaging.engines.ParticipantEngine 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)

Example 10 with ParticipantEngine

use of com.arjuna.wst11.messaging.engines.ParticipantEngine in project narayana by jbosstm.

the class ATParticipantRecoveryRecord method activate.

/**
 * create a participant engine to manage commit or rollback processing for the
 * participant and install it in the active participants table
 */
public void activate() {
    ParticipantEngine engine = new ParticipantEngine(participant, id, State.STATE_PREPARED_SUCCESS, endpoint, true);
    ParticipantProcessor.getProcessor().activateParticipant(engine, getId());
    engine.recovery();
}
Also used : ParticipantEngine(com.arjuna.wst11.messaging.engines.ParticipantEngine)

Aggregations

ParticipantEngine (com.arjuna.wst11.messaging.engines.ParticipantEngine)13 Uid (com.arjuna.ats.arjuna.common.Uid)6 SoapFault11 (com.arjuna.webservices11.SoapFault11)6 W3CEndpointReference (javax.xml.ws.wsaddressing.W3CEndpointReference)5 com.arjuna.wsc (com.arjuna.wsc)2 CommitDurable2PCParticipant (com.jboss.transaction.txinterop.webservices.atinterop.participant.CommitDurable2PCParticipant)2 CommitVolatile2PCParticipant (com.jboss.transaction.txinterop.webservices.atinterop.participant.CommitVolatile2PCParticipant)2 CommitDurable2PCParticipant (com.jboss.transaction.wstf.webservices.sc007.participant.CommitDurable2PCParticipant)2 CommitVolatile2PCParticipant (com.jboss.transaction.wstf.webservices.sc007.participant.CommitVolatile2PCParticipant)2 NoActivityException (com.arjuna.mw.wsas.exceptions.NoActivityException)1 SystemException (com.arjuna.mw.wsas.exceptions.SystemException)1 SubordinateATCoordinator (com.arjuna.mwlabs.wscf.model.twophase.arjunacore.subordinate.SubordinateATCoordinator)1 ArjunaContextImple (com.arjuna.mwlabs.wst11.at.context.ArjunaContextImple)1 CleanupSynchronization (com.arjuna.mwlabs.wst11.at.participants.CleanupSynchronization)1 ServiceRegistry (com.arjuna.webservices11.ServiceRegistry)1 InstanceIdentifier (com.arjuna.webservices11.wsarj.InstanceIdentifier)1 TerminationCoordinatorProcessor (com.arjuna.webservices11.wsarjtx.processors.TerminationCoordinatorProcessor)1 CompletionCoordinatorProcessor (com.arjuna.webservices11.wsat.processors.CompletionCoordinatorProcessor)1 ParticipantProcessor (com.arjuna.webservices11.wsat.processors.ParticipantProcessor)1 CoordinatorCompletionParticipantProcessor (com.arjuna.webservices11.wsba.processors.CoordinatorCompletionParticipantProcessor)1