Search in sources :

Example 16 with ParticipantPortType

use of com.jboss.transaction.wstf.webservices.sc007.generated.ParticipantPortType in project narayana by jbosstm.

the class AsyncParticipantClient method sendCommit.

/**
 * Send a commit 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 sendCommit(final CoordinationContextType coordinationContext, final MAP map) throws SoapFault, IOException {
    map.setReplyTo(initiator);
    ParticipantPortType port = InteropClient.getParticipantPort(map, commitAction);
    CoordinationContextManager.setThreadContext(coordinationContext);
    try {
        port.commit();
    } finally {
        CoordinationContextManager.setThreadContext(null);
    }
}
Also used : ParticipantPortType(com.jboss.transaction.wstf.webservices.sc007.generated.ParticipantPortType)

Aggregations

ParticipantPortType (com.jboss.transaction.wstf.webservices.sc007.generated.ParticipantPortType)16 CoordinationContextHandler (com.jboss.transaction.wstf.webservices.handlers.CoordinationContextHandler)1 Sc007Service (com.jboss.transaction.wstf.webservices.sc007.generated.Sc007Service)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