use of com.jboss.transaction.wstf.webservices.sc007.generated.ParticipantPortType in project narayana by jbosstm.
the class AsyncParticipantClient method sendCompletionRollback.
/**
* Send a completion rollback request.
* @param map The addressing context initialised with to, message ID and relates to.
* @param coordinatorURI The coordinator URI.
* @throws SoapFault For any errors.
* @throws IOException for any transport errors.
*/
public void sendCompletionRollback(final MAP map, final String coordinatorURI) throws SoapFault, IOException {
map.setReplyTo(initiator);
ParticipantPortType port = InteropClient.getParticipantPort(map, completionRollbackAction);
port.completionRollback(coordinatorURI);
}
use of com.jboss.transaction.wstf.webservices.sc007.generated.ParticipantPortType in project narayana by jbosstm.
the class AsyncParticipantClient method sendVolatileAndDurable.
/**
* Send a volatileAndDurable 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 sendVolatileAndDurable(final CoordinationContextType coordinationContext, final MAP map) throws SoapFault, IOException {
map.setReplyTo(initiator);
ParticipantPortType port = InteropClient.getParticipantPort(map, volatileAndDurableAction);
CoordinationContextManager.setThreadContext(coordinationContext);
try {
port.volatileAndDurable();
} finally {
CoordinationContextManager.setThreadContext(null);
}
}
use of com.jboss.transaction.wstf.webservices.sc007.generated.ParticipantPortType in project narayana by jbosstm.
the class AsyncParticipantClient method sendRetryPreparedAbort.
/**
* Send a retryPreparedAbort 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 sendRetryPreparedAbort(final CoordinationContextType coordinationContext, final MAP map) throws SoapFault, IOException {
map.setReplyTo(initiator);
ParticipantPortType port = InteropClient.getParticipantPort(map, retryPreparedAbortAction);
CoordinationContextManager.setThreadContext(coordinationContext);
try {
port.retryPreparedAbort();
} finally {
CoordinationContextManager.setThreadContext(null);
}
}
use of com.jboss.transaction.wstf.webservices.sc007.generated.ParticipantPortType in project narayana by jbosstm.
the class AsyncParticipantClient method sendCompletionCommit.
/**
* Send a completion commit request.
* @param map The addressing context initialised with to, message ID and relates to.
* @param coordinatorURI The coordinator URI.
* @throws SoapFault For any errors.
* @throws IOException for any transport errors.
*/
public void sendCompletionCommit(final MAP map, final String coordinatorURI) throws SoapFault, IOException {
map.setReplyTo(initiator);
ParticipantPortType port = InteropClient.getParticipantPort(map, completionCommitAction);
port.completionCommit(coordinatorURI);
}
use of com.jboss.transaction.wstf.webservices.sc007.generated.ParticipantPortType in project narayana by jbosstm.
the class AsyncParticipantClient method sendPhase2Rollback.
/**
* Send a phase2Rollback 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 sendPhase2Rollback(final CoordinationContextType coordinationContext, final MAP map) throws SoapFault, IOException {
map.setReplyTo(initiator);
ParticipantPortType port = InteropClient.getParticipantPort(map, phase2RollbackAction);
CoordinationContextManager.setThreadContext(coordinationContext);
try {
port.phase2Rollback();
} finally {
CoordinationContextManager.setThreadContext(null);
}
}
Aggregations