use of com.jboss.transaction.txinterop.webservices.atinterop.generated.ParticipantPortType in project narayana by jbosstm.
the class AsyncParticipantClient method sendReplayCommit.
/**
* Send a replayCommit 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 sendReplayCommit(final CoordinationContextType coordinationContext, final MAP map) throws SoapFault, IOException {
map.setReplyTo(initiator);
ParticipantPortType port = ATInteropClient.getParticipantPort(map, replayCommitAction);
CoordinationContextManager.setThreadContext(coordinationContext);
try {
port.replayCommit();
} finally {
CoordinationContextManager.setThreadContext(null);
}
}
use of com.jboss.transaction.txinterop.webservices.atinterop.generated.ParticipantPortType in project narayana by jbosstm.
the class AsyncParticipantClient method sendRetryCommit.
/**
* Send a retryCommit request.
* @param coordinationContext The coordination context.
* @param map The addressing context initialised with to, message ID and relates to.
* @throws IOException for any transport errors.
*/
public void sendRetryCommit(final CoordinationContextType coordinationContext, final MAP map) throws SoapFault, IOException {
map.setReplyTo(initiator);
ParticipantPortType port = ATInteropClient.getParticipantPort(map, retryCommitAction);
CoordinationContextManager.setThreadContext(coordinationContext);
try {
port.retryCommit();
} finally {
CoordinationContextManager.setThreadContext(null);
}
}
use of com.jboss.transaction.txinterop.webservices.atinterop.generated.ParticipantPortType in project narayana by jbosstm.
the class AsyncParticipantClient method sendLostCommitted.
/**
* Send a lostCommitted 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 sendLostCommitted(final CoordinationContextType coordinationContext, final MAP map) throws SoapFault, IOException {
map.setReplyTo(initiator);
ParticipantPortType port = ATInteropClient.getParticipantPort(map, lostCommittedAction);
CoordinationContextManager.setThreadContext(coordinationContext);
try {
port.lostCommitted();
} finally {
CoordinationContextManager.setThreadContext(null);
}
}
use of com.jboss.transaction.txinterop.webservices.atinterop.generated.ParticipantPortType in project narayana by jbosstm.
the class AsyncParticipantClient method sendRollback.
/**
* Send a rollback 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 sendRollback(final CoordinationContextType coordinationContext, final MAP map) throws SoapFault, IOException {
map.setReplyTo(initiator);
ParticipantPortType port = ATInteropClient.getParticipantPort(map, rollbackAction);
CoordinationContextManager.setThreadContext(coordinationContext);
try {
port.rollback();
} finally {
CoordinationContextManager.setThreadContext(null);
}
}
use of com.jboss.transaction.txinterop.webservices.atinterop.generated.ParticipantPortType in project narayana by jbosstm.
the class AsyncParticipantClient method sendEarlyReadonly.
/**
* Send an earlyReadonly 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 sendEarlyReadonly(final CoordinationContextType coordinationContext, final MAP map) throws SoapFault, IOException {
map.setReplyTo(initiator);
ParticipantPortType port = ATInteropClient.getParticipantPort(map, earlyReadonlyAction);
CoordinationContextManager.setThreadContext(coordinationContext);
try {
port.earlyReadonly();
} finally {
CoordinationContextManager.setThreadContext(null);
}
}
Aggregations