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