Search in sources :

Example 1 with ReadonlyDurable2PCParticipant

use of com.jboss.transaction.txinterop.webservices.atinterop.participant.ReadonlyDurable2PCParticipant in project narayana by jbosstm.

the class ATParticipantProcessor 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 {
        ATInteropUtil.registerDurable2PC(coordinationContext, new ReadonlyDurable2PCParticipant(), new Uid().toString());
        ATInteropUtil.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.txinterop.webservices.atinterop.participant.CommitDurable2PCParticipant) ReadonlyDurable2PCParticipant(com.jboss.transaction.txinterop.webservices.atinterop.participant.ReadonlyDurable2PCParticipant) SoapFault11(com.arjuna.webservices11.SoapFault11)

Aggregations

Uid (com.arjuna.ats.arjuna.common.Uid)1 SoapFault11 (com.arjuna.webservices11.SoapFault11)1 CommitDurable2PCParticipant (com.jboss.transaction.txinterop.webservices.atinterop.participant.CommitDurable2PCParticipant)1 ReadonlyDurable2PCParticipant (com.jboss.transaction.txinterop.webservices.atinterop.participant.ReadonlyDurable2PCParticipant)1