/** * Send a closed 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 sendClosed(final W3CEndpointReference participant, final MAP map, final InstanceIdentifier identifier) throws SoapFault, IOException { MAPEndpoint coordinator = getCoordinator(participant); AddressingHelper.installFromFaultTo(map, coordinator, identifier); final TerminationParticipantPortType port = getPort(participant, map, identifier, closedAction); final NotificationType closed = new NotificationType(); port.closedOperation(closed); }
/** * Send a prepared 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 SOAP errors. * @throws java.io.IOException for any transport errors. */ public void sendPrepared(final W3CEndpointReference endpoint, final MAP map, final InstanceIdentifier identifier) throws SoapFault, IOException { MAPEndpoint participant = getParticipant(endpoint, map); AddressingHelper.installFromFaultTo(map, participant, identifier); CoordinatorPortType port = getPort(endpoint, map, preparedAction); Notification prepared = new Notification(); port.preparedOperation(prepared); }
/** * Send a prepare 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 sendPrepare(final W3CEndpointReference endpoint, final MAP map, final InstanceIdentifier identifier) throws SoapFault, IOException { MAPEndpoint coordinator = getCoordinator(endpoint, map); AddressingHelper.installFromFaultTo(map, coordinator, identifier); ParticipantPortType port = getPort(endpoint, map, prepareAction); Notification prepare = new Notification(); port.prepareOperation(prepare); }
/** * 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 coordinator = getCoordinator(endpoint, map); AddressingHelper.installFromFaultTo(map, coordinator, identifier); ParticipantPortType port = getPort(endpoint, map, commitAction); Notification commit = new Notification(); port.commitOperation(commit); }
/** * 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); }
/** * Send a faulted 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 sendFaulted(final W3CEndpointReference participant, final MAP map, final InstanceIdentifier identifier) throws SoapFault, IOException { MAPEndpoint coordinator = getCoordinator(participant); AddressingHelper.installFromFaultTo(map, coordinator, identifier); final TerminationParticipantPortType port = getPort(participant, map, identifier, faultedAction); final NotificationType faulted = new NotificationType(); port.faultedOperation(faulted); }
/** * 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); }
/** * 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); }
/** * Send a cancelled 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 sendCancelled(final W3CEndpointReference participant,final MAP map, final InstanceIdentifier identifier) throws SoapFault, IOException { MAPEndpoint coordinator = getCoordinator(participant); AddressingHelper.installFromFaultTo(map, coordinator, identifier); final TerminationParticipantPortType port = getPort(participant, map, identifier, cancelledAction); final NotificationType cancelled = new NotificationType(); port.cancelledOperation(cancelled); }
/** * 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); }
/** * 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 coordinator = getCoordinator(endpoint, map); AddressingHelper.installFromFaultTo(map, coordinator, identifier); ParticipantPortType port = getPort(endpoint, map, rollbackAction); Notification rollback = new Notification(); port.rollbackOperation(rollback); }
/** * Send a cancel 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 sendCancel(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, cancelAction); final NotificationType cancel = new NotificationType(); port.cancelOperation(cancel); }
/** * 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 coordinator = getCoordinator(endpoint, map); AddressingHelper.installFromFaultTo(map, coordinator, identifier); ParticipantPortType port = getPort(endpoint, map, commitAction); Notification commit = new Notification(); port.commitOperation(commit); }
/** * 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 coordinator = getCoordinator(endpoint, map); AddressingHelper.installFromFaultTo(map, coordinator, identifier); ParticipantPortType port = getPort(endpoint, map, rollbackAction); Notification rollback = new Notification(); port.rollbackOperation(rollback); }
/** * Send a completed 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 sendCompleted(final W3CEndpointReference participant, final MAP map, final InstanceIdentifier identifier) throws SoapFault, IOException { MAPEndpoint coordinator = getCoordinator(participant); AddressingHelper.installFromFaultTo(map, coordinator, identifier); final TerminationParticipantPortType port = getPort(participant, map, identifier, completedAction); final NotificationType completed = new NotificationType(); port.completedOperation(completed); }
/** * Send a faulted 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 sendFaulted(final W3CEndpointReference participant, final MAP map, final InstanceIdentifier identifier) throws SoapFault, IOException { MAPEndpoint coordinator = getCoordinator(participant); AddressingHelper.installFromFaultTo(map, coordinator, identifier); final TerminationParticipantPortType port = getPort(participant, map, identifier, faultedAction); final NotificationType faulted = new NotificationType(); port.faultedOperation(faulted); }
/** * Send a prepared 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 SOAP errors. * @throws java.io.IOException for any transport errors. */ public void sendPrepared(final W3CEndpointReference endpoint, final MAP map, final InstanceIdentifier identifier) throws SoapFault, IOException { MAPEndpoint participant = getParticipant(endpoint, map); AddressingHelper.installFromFaultTo(map, participant, identifier); CoordinatorPortType port = getPort(endpoint, map, preparedAction); Notification prepared = new Notification(); port.preparedOperation(prepared); }
/** * 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 coordinator = getCoordinator(endpoint, map); AddressingHelper.installFromFaultTo(map, coordinator, identifier); ParticipantPortType port = getPort(endpoint, map, commitAction); Notification commit = new Notification(); port.commitOperation(commit); }
/** * 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); }
/** * 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); }