use of com.jboss.transaction.txinterop.webservices.bainterop.generated.ParticipantPortType in project narayana by jbosstm.
the class AsyncParticipantClient method sendCoordinatorCompleteClose.
/**
* Send a coordinator complete close 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 sendCoordinatorCompleteClose(final CoordinationContextType coordinationContext, final MAP map) throws SoapFault, IOException {
map.setReplyTo(initiator);
ParticipantPortType port = BAInteropClient.getParticipantPort(map, coordinatorCompleteCloseAction);
CoordinationContextManager.setThreadContext(coordinationContext);
try {
port.coordinatorCompleteClose();
} finally {
CoordinationContextManager.setThreadContext(null);
}
}
use of com.jboss.transaction.txinterop.webservices.bainterop.generated.ParticipantPortType in project narayana by jbosstm.
the class AsyncParticipantClient method sendUnsolicitedComplete.
/**
* Send a unsolicited complete 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 sendUnsolicitedComplete(final CoordinationContextType coordinationContext, final MAP map) throws SoapFault, IOException {
map.setReplyTo(initiator);
ParticipantPortType port = BAInteropClient.getParticipantPort(map, unsolicitedCompleteAction);
CoordinationContextManager.setThreadContext(coordinationContext);
try {
port.unsolicitedComplete();
} finally {
CoordinationContextManager.setThreadContext(null);
}
}
use of com.jboss.transaction.txinterop.webservices.bainterop.generated.ParticipantPortType in project narayana by jbosstm.
the class AsyncParticipantClient method sendMixedOutcome.
/**
* Send a mixed outcome 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 sendMixedOutcome(final CoordinationContextType coordinationContext, final MAP map) throws SoapFault, IOException {
map.setReplyTo(initiator);
ParticipantPortType port = BAInteropClient.getParticipantPort(map, mixedOutcomeAction);
CoordinationContextManager.setThreadContext(coordinationContext);
try {
port.mixedOutcome();
} finally {
CoordinationContextManager.setThreadContext(null);
}
}
Aggregations