Search in sources :

Example 1 with CompletionCoordinatorPortType

use of org.oasis_open.docs.ws_tx.wsat._2006._06.CompletionCoordinatorPortType 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);
}
Also used : MAPEndpoint(org.jboss.ws.api.addressing.MAPEndpoint) CompletionCoordinatorPortType(org.oasis_open.docs.ws_tx.wsat._2006._06.CompletionCoordinatorPortType) Notification(org.oasis_open.docs.ws_tx.wsat._2006._06.Notification)

Example 2 with CompletionCoordinatorPortType

use of org.oasis_open.docs.ws_tx.wsat._2006._06.CompletionCoordinatorPortType in project narayana by jbosstm.

the class CompletionCoordinatorClient method sendRollback.

/**
 * Send a rollback 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 sendRollback(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, rollbackAction);
    Notification rollback = new Notification();
    port.rollbackOperation(rollback);
}
Also used : MAPEndpoint(org.jboss.ws.api.addressing.MAPEndpoint) CompletionCoordinatorPortType(org.oasis_open.docs.ws_tx.wsat._2006._06.CompletionCoordinatorPortType) Notification(org.oasis_open.docs.ws_tx.wsat._2006._06.Notification)

Aggregations

MAPEndpoint (org.jboss.ws.api.addressing.MAPEndpoint)2 CompletionCoordinatorPortType (org.oasis_open.docs.ws_tx.wsat._2006._06.CompletionCoordinatorPortType)2 Notification (org.oasis_open.docs.ws_tx.wsat._2006._06.Notification)2