Search in sources :

Example 1 with CommitVolatile2PCParticipant

use of com.jboss.transaction.wstf.webservices.sc007.participant.CommitVolatile2PCParticipant 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 2 with CommitVolatile2PCParticipant

use of com.jboss.transaction.wstf.webservices.sc007.participant.CommitVolatile2PCParticipant 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 3 with CommitVolatile2PCParticipant

use of com.jboss.transaction.wstf.webservices.sc007.participant.CommitVolatile2PCParticipant in project narayana by jbosstm.

the class ParticipantProcessor method phase2Rollback.

/**
 * Execute the Phase2Rollback
 * @param map The current addressing context.
 * @throws SoapFault11 for errors during processing
 */
public void phase2Rollback(final CoordinationContextType coordinationContext, final MAP map) throws SoapFault11 {
    try {
        InteropUtil.registerVolatile2PC(coordinationContext, new CommitVolatile2PCParticipant(), new Uid().toString());
        InteropUtil.registerDurable2PC(coordinationContext, new RollbackDurable2PCParticipant(), new Uid().toString());
    } 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) RollbackDurable2PCParticipant(com.jboss.transaction.wstf.webservices.sc007.participant.RollbackDurable2PCParticipant) SoapFault11(com.arjuna.webservices11.SoapFault11)

Example 4 with CommitVolatile2PCParticipant

use of com.jboss.transaction.wstf.webservices.sc007.participant.CommitVolatile2PCParticipant in project narayana by jbosstm.

the class ParticipantProcessor method preparedAfterTimeout.

/**
 * Execute the PreparedAfterTimeout
 * @param map The current addressing context.
 * @throws SoapFault11 for errors during processing
 */
public void preparedAfterTimeout(final CoordinationContextType coordinationContext, final MAP map) throws SoapFault11 {
    try {
        InteropUtil.registerVolatile2PC(coordinationContext, new CommitVolatile2PCParticipant(), new Uid().toString());
        InteropUtil.registerDurable2PC(coordinationContext, new CommitDurable2PCParticipant(), new Uid().toString());
    } 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) SoapFault11(com.arjuna.webservices11.SoapFault11)

Aggregations

Uid (com.arjuna.ats.arjuna.common.Uid)4 SoapFault11 (com.arjuna.webservices11.SoapFault11)4 CommitVolatile2PCParticipant (com.jboss.transaction.wstf.webservices.sc007.participant.CommitVolatile2PCParticipant)4 CommitDurable2PCParticipant (com.jboss.transaction.wstf.webservices.sc007.participant.CommitDurable2PCParticipant)3 ParticipantEngine (com.arjuna.wst11.messaging.engines.ParticipantEngine)2 RollbackDurable2PCParticipant (com.jboss.transaction.wstf.webservices.sc007.participant.RollbackDurable2PCParticipant)1