use of org.jboss.ws.api.addressing.MAPEndpoint in project narayana by jbosstm.
the class CompletionCoordinatorClient method sendCommit.
/**
* Send a commit request.
* @param map addressing context initialised with to and message ID.
* @param identifier The identifier of the initiator.
* @throws com.arjuna.webservices.SoapFault For any errors.
* @throws java.io.IOException for any transport errors.
*/
public void sendCommit(final W3CEndpointReference endpoint, final MAP map, final InstanceIdentifier identifier) throws SoapFault, IOException {
MAPEndpoint initiator = getCompletionInitiator(endpoint);
AddressingHelper.installFromFaultTo(map, initiator, identifier);
CompletionCoordinatorPortType port = getPort(endpoint, map, commitAction);
Notification commit = new Notification();
port.commitOperation(commit);
}
use of org.jboss.ws.api.addressing.MAPEndpoint in project narayana by jbosstm.
the class CompletionInitiatorClient method sendAborted.
/**
* Send an aborted request.
* @param map addressing context initialised with to and message ID.
* @param identifier The identifier of the initiator.
* @throws com.arjuna.webservices.SoapFault For any errors.
* @throws java.io.IOException for any transport errors.
*/
public void sendAborted(final W3CEndpointReference participant, final MAP map, final InstanceIdentifier identifier) throws SoapFault, IOException {
MAPEndpoint coordinator = getCompletionCoordinator(participant);
AddressingHelper.installFaultTo(map, coordinator, identifier);
CompletionInitiatorPortType port = getPort(participant, map, abortedAction);
Notification aborted = new Notification();
port.abortedOperation(aborted);
}
use of org.jboss.ws.api.addressing.MAPEndpoint in project narayana by jbosstm.
the class CompletionInitiatorClient method sendCommitted.
/**
* Send a committed request.
* @param map addressing context initialised with to and message ID.
* @param identifier The identifier of the initiator.
* @throws com.arjuna.webservices.SoapFault For any errors.
* @throws java.io.IOException for any transport errors.
*/
public void sendCommitted(final W3CEndpointReference participant, final MAP map, final InstanceIdentifier identifier) throws SoapFault, IOException {
MAPEndpoint coordinator = getCompletionCoordinator(participant);
AddressingHelper.installFaultTo(map, coordinator, identifier);
CompletionInitiatorPortType port = getPort(participant, map, committedAction);
Notification commited = new Notification();
port.committedOperation(commited);
}
use of org.jboss.ws.api.addressing.MAPEndpoint in project narayana by jbosstm.
the class TerminationCoordinatorClient method sendComplete.
/**
* Send a complete request.
* @param map addressing context initialised with to and message ID.
* @param identifier The identifier of the initiator.
* @throws com.arjuna.webservices.SoapFault For any errors.
* @throws java.io.IOException for any transport errors.
*/
public void sendComplete(final W3CEndpointReference coordinator, final MAP map, final InstanceIdentifier identifier) throws SoapFault, IOException {
MAPEndpoint participant = getParticipant(coordinator);
AddressingHelper.installFromFaultTo(map, participant, identifier);
final TerminationCoordinatorPortType port = getPort(coordinator, map, identifier, completeAction);
final NotificationType complete = new NotificationType();
port.completeOperation(complete);
}
use of org.jboss.ws.api.addressing.MAPEndpoint in project narayana by jbosstm.
the class TerminationCoordinatorClient method sendClose.
/**
* Send a close request.
* @param map addressing context initialised with to and message ID.
* @param identifier The identifier of the initiator.
* @throws com.arjuna.webservices.SoapFault For any errors.
* @throws java.io.IOException for any transport errors.
*/
public void sendClose(final W3CEndpointReference coordinator, final MAP map, final InstanceIdentifier identifier) throws SoapFault, IOException {
MAPEndpoint participant = getParticipant(coordinator);
AddressingHelper.installFromFaultTo(map, participant, identifier);
final TerminationCoordinatorPortType port = getPort(coordinator, map, identifier, closeAction);
final NotificationType close = new NotificationType();
port.closeOperation(close);
}
Aggregations