Search in sources :

Example 1 with ParticipantPortType

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

the class AsyncParticipantClient method sendCompensationFail.

/**
 * Send a compensation fail 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 sendCompensationFail(final CoordinationContextType coordinationContext, final MAP map) throws SoapFault, IOException {
    map.setReplyTo(initiator);
    ParticipantPortType port = BAInteropClient.getParticipantPort(map, participantCompensationFailAction);
    CoordinationContextManager.setThreadContext(coordinationContext);
    try {
        port.compensationFail();
    } finally {
        CoordinationContextManager.setThreadContext(null);
    }
}
Also used : ParticipantPortType(com.jboss.transaction.txinterop.webservices.bainterop.generated.ParticipantPortType)

Example 2 with ParticipantPortType

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

the class AsyncParticipantClient method sendFail.

/**
 * Send a fail 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 sendFail(final CoordinationContextType coordinationContext, final MAP map) throws SoapFault, IOException {
    map.setReplyTo(initiator);
    ParticipantPortType port = BAInteropClient.getParticipantPort(map, failAction);
    CoordinationContextManager.setThreadContext(coordinationContext);
    try {
        port.fail();
    } finally {
        CoordinationContextManager.setThreadContext(null);
    }
}
Also used : ParticipantPortType(com.jboss.transaction.txinterop.webservices.bainterop.generated.ParticipantPortType)

Example 3 with ParticipantPortType

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

the class AsyncParticipantClient method sendMessageLossAndRecovery.

/**
 * Send a message loss and recovery 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 sendMessageLossAndRecovery(final CoordinationContextType coordinationContext, final MAP map) throws SoapFault, IOException {
    map.setReplyTo(initiator);
    ParticipantPortType port = BAInteropClient.getParticipantPort(map, messageLossAndRecoveryAction);
    CoordinationContextManager.setThreadContext(coordinationContext);
    try {
        port.messageLossAndRecovery();
    } finally {
        CoordinationContextManager.setThreadContext(null);
    }
}
Also used : ParticipantPortType(com.jboss.transaction.txinterop.webservices.bainterop.generated.ParticipantPortType)

Example 4 with ParticipantPortType

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

the class AsyncParticipantClient method sendCancel.

/**
 * Send a cancel 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 sendCancel(final CoordinationContextType coordinationContext, final MAP map) throws SoapFault, IOException {
    map.setReplyTo(initiator);
    ParticipantPortType port = BAInteropClient.getParticipantPort(map, cancelAction);
    CoordinationContextManager.setThreadContext(coordinationContext);
    try {
        port.cancel();
    } finally {
        CoordinationContextManager.setThreadContext(null);
    }
}
Also used : ParticipantPortType(com.jboss.transaction.txinterop.webservices.bainterop.generated.ParticipantPortType)

Example 5 with ParticipantPortType

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

the class AsyncParticipantClient method sendParticipantCancelCompletedRace.

/**
 * Send a participant cancel completed race 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 sendParticipantCancelCompletedRace(final CoordinationContextType coordinationContext, final MAP map) throws SoapFault, IOException {
    map.setReplyTo(initiator);
    ParticipantPortType port = BAInteropClient.getParticipantPort(map, participantCancelCompletedRaceAction);
    CoordinationContextManager.setThreadContext(coordinationContext);
    try {
        port.participantCancelCompletedRace();
    } finally {
        CoordinationContextManager.setThreadContext(null);
    }
}
Also used : ParticipantPortType(com.jboss.transaction.txinterop.webservices.bainterop.generated.ParticipantPortType)

Aggregations

ParticipantPortType (com.jboss.transaction.txinterop.webservices.bainterop.generated.ParticipantPortType)13 ParticipantService (com.jboss.transaction.txinterop.webservices.bainterop.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