/** * 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 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 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 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 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 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 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); }