/** * Send the not completed message. * */ private void sendNotCompleted() { final MAP map = createContext() ; try { ParticipantCompletionParticipantClient.getClient().sendNotCompleted(participant, map, instanceIdentifier) ; } catch (final Throwable th) { if (WSTLogger.logger.isTraceEnabled()) { WSTLogger.logger.tracev("Unexpected exception while sending NotCompleted", th) ; } } }
/** * 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(W3CEndpointReference endpoint, final MAP map, final InstanceIdentifier identifier) throws SoapFault, IOException { MAPEndpoint coordinator = getCoordinator(endpoint, map); AddressingHelper.installFromFaultTo(map, coordinator, identifier); BusinessAgreementWithParticipantCompletionParticipantPortType port; port = getPort(endpoint, map, cancelAction); NotificationType cancel = new NotificationType(); port.cancelOperation(cancel); }
/** * Send the cancel message. * */ private void sendCancel() { final MAP map = createContext() ; try { ParticipantCompletionParticipantClient.getClient().sendCancel(participant, map, instanceIdentifier) ; } catch (final Throwable th) { if (WSTLogger.logger.isTraceEnabled()) { WSTLogger.logger.tracev("Unexpected exception while sending Cancel", th) ; } } }
/** * Send the compensate message. * */ private void sendCompensate() { final MAP map = createContext() ; try { ParticipantCompletionParticipantClient.getClient().sendCompensate(participant, map, instanceIdentifier) ; } catch (final Throwable th) { if (WSTLogger.logger.isTraceEnabled()) { WSTLogger.logger.tracev("Unexpected exception while sending Compensate", th) ; } } }
/** * Send the faulted message. * */ private void sendFailed() { final MAP map = createContext() ; try { ParticipantCompletionParticipantClient.getClient().sendFailed(participant, map, instanceIdentifier) ; } catch (final Throwable th) { if (WSTLogger.logger.isTraceEnabled()) { WSTLogger.logger.tracev("Unexpected exception while sending Faulted", th) ; } } }
/** * Send the exited message. * */ private void sendExited() { final MAP map = createContext() ; try { ParticipantCompletionParticipantClient.getClient().sendExited(participant, map, instanceIdentifier) ; } catch (final Throwable th) { if (WSTLogger.logger.isTraceEnabled()) { WSTLogger.logger.tracev("Unexpected exception while sending Exited", th) ; } } }
/** * Send the close message. * */ private void sendClose() { final MAP map = createContext() ; try { ParticipantCompletionParticipantClient.getClient().sendClose(participant, map, instanceIdentifier) ; } catch (final Throwable th) { if (WSTLogger.logger.isTraceEnabled()) { WSTLogger.logger.tracev("Unexpected exception while sending Close", th) ; } } }
/** * Send the status message. * @param state The state. * */ private void sendStatus(final State state) { final MAP map = createContext() ; try { ParticipantCompletionParticipantClient.getClient().sendStatus(participant, map, instanceIdentifier, state.getValue()) ; } catch (final Throwable th) { if (WSTLogger.logger.isTraceEnabled()) { WSTLogger.logger.tracev("Unexpected exception while sending Status", th) ; } } }
WSTLogger.i18NLogger.get_wst11_messaging_ParticipantCompletionCoordinatorProcessorImpl_getStatus_4()) ; AddressingHelper.installNoneReplyTo(faultMAP); ParticipantCompletionParticipantClient.getClient().sendSoapFault(soapFault, null, faultMAP, getFaultAction());
/** * send a soap fault * @param soapFault the fault to be sent * @param endpoint the endpoint to send the fault to * @param map addressing context to be used to send the fault * @param faultAction the action to associate with the message */ public void sendSoapFault(SoapFault11 soapFault, W3CEndpointReference endpoint, MAP map, String faultAction) throws SoapFault, IOException { AddressingHelper.installNoneReplyTo(map); map.setAction(faultAction); BusinessAgreementWithParticipantCompletionParticipantPortType port; port = getPort(endpoint, map, faultAction); Fault fault = ((SoapFault11)soapFault).toFault(); port.soapFault(fault); } /**
/** * Send the faulted message. * */ private void sendFailed() { final MAP map = createContext() ; try { ParticipantCompletionParticipantClient.getClient().sendFailed(participant, map, instanceIdentifier) ; } catch (final Throwable th) { if (WSTLogger.logger.isTraceEnabled()) { WSTLogger.logger.tracev("Unexpected exception while sending Faulted", th) ; } } }
/** * Send the exited message. * */ private void sendExited() { final MAP map = createContext() ; try { ParticipantCompletionParticipantClient.getClient().sendExited(participant, map, instanceIdentifier) ; } catch (final Throwable th) { if (WSTLogger.logger.isTraceEnabled()) { WSTLogger.logger.tracev("Unexpected exception while sending Exited", th) ; } } }
/** * Send the compensate message. * */ private void sendCompensate() { final MAP map = createContext() ; try { ParticipantCompletionParticipantClient.getClient().sendCompensate(participant, map, instanceIdentifier) ; } catch (final Throwable th) { if (WSTLogger.logger.isTraceEnabled()) { WSTLogger.logger.tracev("Unexpected exception while sending Compensate", th) ; } } }
/** * Send the close message. * */ private void sendClose() { final MAP map = createContext() ; try { ParticipantCompletionParticipantClient.getClient().sendClose(participant, map, instanceIdentifier) ; } catch (final Throwable th) { if (WSTLogger.logger.isTraceEnabled()) { WSTLogger.logger.tracev("Unexpected exception while sending Close", th) ; } } }
/** * Send the status message. * @param state The state. * */ private void sendStatus(final State state) { final MAP map = createContext() ; try { ParticipantCompletionParticipantClient.getClient().sendStatus(participant, map, instanceIdentifier, state.getValue()) ; } catch (final Throwable th) { if (WSTLogger.logger.isTraceEnabled()) { WSTLogger.logger.tracev("Unexpected exception while sending Status", th) ; } } }
WSTLogger.i18NLogger.get_wst11_messaging_ParticipantCompletionCoordinatorProcessorImpl_getStatus_4()) ; AddressingHelper.installNoneReplyTo(faultMAP); ParticipantCompletionParticipantClient.getClient().sendSoapFault(soapFault, null, faultMAP, getFaultAction());
/** * send a soap fault * @param soapFault the fault to be sent * @param endpoint the endpoint to send the fault to * @param map addressing context to be used to send the fault * @param faultAction the action to associate with the message */ public void sendSoapFault(SoapFault11 soapFault, W3CEndpointReference endpoint, MAP map, String faultAction) throws SoapFault, IOException { AddressingHelper.installNoneReplyTo(map); map.setAction(faultAction); BusinessAgreementWithParticipantCompletionParticipantPortType port; port = getPort(endpoint, map, faultAction); Fault fault = ((SoapFault11)soapFault).toFault(); port.soapFault(fault); } /**
/** * Send an exited 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 sendExited(W3CEndpointReference endpoint, final MAP map, final InstanceIdentifier identifier) throws SoapFault, IOException { MAPEndpoint coordinator = getCoordinator(endpoint, map); AddressingHelper.installFaultTo(map, coordinator, identifier); BusinessAgreementWithParticipantCompletionParticipantPortType port; port = getPort(endpoint, map, exitedAction); NotificationType exited = new NotificationType(); port.exitedOperation(exited); }
/** * Send the not completed message. * */ private void sendNotCompleted() { final MAP map = createContext() ; try { ParticipantCompletionParticipantClient.getClient().sendNotCompleted(participant, map, instanceIdentifier) ; } catch (final Throwable th) { if (WSTLogger.logger.isTraceEnabled()) { WSTLogger.logger.tracev("Unexpected exception while sending NotCompleted", th) ; } } }
/** * Send the faulted message. * */ private void sendFailed() { final MAP map = createContext() ; try { ParticipantCompletionParticipantClient.getClient().sendFailed(participant, map, instanceIdentifier) ; } catch (final Throwable th) { if (WSTLogger.logger.isTraceEnabled()) { WSTLogger.logger.tracev("Unexpected exception while sending Faulted", th) ; } } }