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);
}
}
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);
}
}
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);
}
}
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);
}
}
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();
}
Aggregations