Search in sources :

Example 1 with ParticipantPortType

use of com.jboss.transaction.txinterop.webservices.atinterop.generated.ParticipantPortType in project narayana by jbosstm.

the class AsyncParticipantClient method sendReplayCommit.

/**
 * Send a replayCommit request.
 * @param coordinationContext The coordination context.
 * @param map The addressing context initialised with to, message ID and relates to.
 * @throws SoapFault For any errors.
 * @throws IOException for any transport errors.
 */
public void sendReplayCommit(final CoordinationContextType coordinationContext, final MAP map) throws SoapFault, IOException {
    map.setReplyTo(initiator);
    ParticipantPortType port = ATInteropClient.getParticipantPort(map, replayCommitAction);
    CoordinationContextManager.setThreadContext(coordinationContext);
    try {
        port.replayCommit();
    } finally {
        CoordinationContextManager.setThreadContext(null);
    }
}
Also used : ParticipantPortType(com.jboss.transaction.txinterop.webservices.atinterop.generated.ParticipantPortType)

Example 2 with ParticipantPortType

use of com.jboss.transaction.txinterop.webservices.atinterop.generated.ParticipantPortType in project narayana by jbosstm.

the class AsyncParticipantClient method sendRetryCommit.

/**
 * Send a retryCommit request.
 * @param coordinationContext The coordination context.
 * @param map The addressing context initialised with to, message ID and relates to.
 * @throws IOException for any transport errors.
 */
public void sendRetryCommit(final CoordinationContextType coordinationContext, final MAP map) throws SoapFault, IOException {
    map.setReplyTo(initiator);
    ParticipantPortType port = ATInteropClient.getParticipantPort(map, retryCommitAction);
    CoordinationContextManager.setThreadContext(coordinationContext);
    try {
        port.retryCommit();
    } finally {
        CoordinationContextManager.setThreadContext(null);
    }
}
Also used : ParticipantPortType(com.jboss.transaction.txinterop.webservices.atinterop.generated.ParticipantPortType)

Example 3 with ParticipantPortType

use of com.jboss.transaction.txinterop.webservices.atinterop.generated.ParticipantPortType in project narayana by jbosstm.

the class AsyncParticipantClient method sendLostCommitted.

/**
 * Send a lostCommitted request.
 * @param coordinationContext The coordination context.
 * @param map The addressing context initialised with to, message ID and relates to.
 * @throws SoapFault For any errors.
 * @throws IOException for any transport errors.
 */
public void sendLostCommitted(final CoordinationContextType coordinationContext, final MAP map) throws SoapFault, IOException {
    map.setReplyTo(initiator);
    ParticipantPortType port = ATInteropClient.getParticipantPort(map, lostCommittedAction);
    CoordinationContextManager.setThreadContext(coordinationContext);
    try {
        port.lostCommitted();
    } finally {
        CoordinationContextManager.setThreadContext(null);
    }
}
Also used : ParticipantPortType(com.jboss.transaction.txinterop.webservices.atinterop.generated.ParticipantPortType)

Example 4 with ParticipantPortType

use of com.jboss.transaction.txinterop.webservices.atinterop.generated.ParticipantPortType in project narayana by jbosstm.

the class AsyncParticipantClient method sendRollback.

/**
 * Send a rollback request.
 * @param coordinationContext The coordination context.
 * @param map The addressing context initialised with to, message ID and relates to.
 * @throws SoapFault For any errors.
 * @throws IOException for any transport errors.
 */
public void sendRollback(final CoordinationContextType coordinationContext, final MAP map) throws SoapFault, IOException {
    map.setReplyTo(initiator);
    ParticipantPortType port = ATInteropClient.getParticipantPort(map, rollbackAction);
    CoordinationContextManager.setThreadContext(coordinationContext);
    try {
        port.rollback();
    } finally {
        CoordinationContextManager.setThreadContext(null);
    }
}
Also used : ParticipantPortType(com.jboss.transaction.txinterop.webservices.atinterop.generated.ParticipantPortType)

Example 5 with ParticipantPortType

use of com.jboss.transaction.txinterop.webservices.atinterop.generated.ParticipantPortType in project narayana by jbosstm.

the class AsyncParticipantClient method sendEarlyReadonly.

/**
 * Send an earlyReadonly request.
 * @param coordinationContext The coordination context.
 * @param map The addressing context initialised with to, message ID and relates to.
 * @throws SoapFault For any errors.
 * @throws IOException for any transport errors.
 */
public void sendEarlyReadonly(final CoordinationContextType coordinationContext, final MAP map) throws SoapFault, IOException {
    map.setReplyTo(initiator);
    ParticipantPortType port = ATInteropClient.getParticipantPort(map, earlyReadonlyAction);
    CoordinationContextManager.setThreadContext(coordinationContext);
    try {
        port.earlyReadonly();
    } finally {
        CoordinationContextManager.setThreadContext(null);
    }
}
Also used : ParticipantPortType(com.jboss.transaction.txinterop.webservices.atinterop.generated.ParticipantPortType)

Aggregations

ParticipantPortType (com.jboss.transaction.txinterop.webservices.atinterop.generated.ParticipantPortType)16 ParticipantService (com.jboss.transaction.txinterop.webservices.atinterop.generated.ParticipantService)1 CoordinationContextHandler (com.jboss.transaction.txinterop.webservices.handlers.CoordinationContextHandler)1 ArrayList (java.util.ArrayList)1 BindingProvider (javax.xml.ws.BindingProvider)1 Handler (javax.xml.ws.handler.Handler)1 AddressingFeature (javax.xml.ws.soap.AddressingFeature)1