/** * Send the rollback message. * */ private void sendRollback() { try { ParticipantClient.getClient().sendRollback(participant, createContext(), instanceIdentifier) ; } catch (final Throwable th) { if (WSTLogger.logger.isTraceEnabled()) { WSTLogger.logger.tracev("Unexpecting exception while sending Rollback", th) ; } } }
/** * 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 an unknown transaction fault. * * @param map The addressing context. * @param arjunaContext The arjuna context. * */ private void sendUnknownTransaction(final MAP map, final ArjunaContext arjunaContext) { // KEV add check for recovery final MAP faultAddressingContext = AddressingHelper.createFaultContext(map, MessageId.getMessageId()) ; final InstanceIdentifier instanceIdentifier = arjunaContext.getInstanceIdentifier() ; try { final String message = WSTLogger.i18NLogger.get_wst11_messaging_CoordinatorProcessorImpl_sendUnknownTransaction_1(); final SoapFault soapFault = new SoapFault11(SoapFaultType.FAULT_SENDER, AtomicTransactionConstants.WSAT_ERROR_CODE_UNKNOWN_TRANSACTION_QNAME, message) ; ParticipantClient.getClient().sendSoapFault(faultAddressingContext, soapFault, instanceIdentifier) ; } catch (final Throwable th) { if (WSTLogger.logger.isTraceEnabled()) { WSTLogger.logger.tracev("Unexpecting exception while sending InvalidState", th) ; } } }
ParticipantClient.getClient().sendPrepare(participant, createContext(), instanceIdentifier) ;
ParticipantClient.getClient().sendCommit(participant, createContext(), instanceIdentifier) ;
/** * Send a fault. * @param map The addressing context. * @param soapFault The SOAP fault. * @param identifier The arjuna instance identifier. * @throws com.arjuna.webservices.SoapFault For any errors. * @throws java.io.IOException for any transport errors. */ public void sendSoapFault(final MAP map, final SoapFault soapFault, final InstanceIdentifier identifier) throws SoapFault, IOException { ParticipantPortType port = getPort(null, map, faultAction); // convert fault to the wire format and dispatch it to the initiator soapFault.setAction(faultAction) ; Fault fault = ((SoapFault11)soapFault).toFault(); port.soapFault(fault); }
/** * Send an unknown transaction fault. * * @param map The addressing context. * @param arjunaContext The arjuna context. * */ private void sendUnknownTransaction(final MAP map, final ArjunaContext arjunaContext) { // KEV add check for recovery final MAP faultAddressingContext = AddressingHelper.createFaultContext(map, MessageId.getMessageId()) ; final InstanceIdentifier instanceIdentifier = arjunaContext.getInstanceIdentifier() ; try { final String message = WSTLogger.i18NLogger.get_wst11_messaging_CoordinatorProcessorImpl_sendUnknownTransaction_1(); final SoapFault soapFault = new SoapFault11(SoapFaultType.FAULT_SENDER, AtomicTransactionConstants.WSAT_ERROR_CODE_UNKNOWN_TRANSACTION_QNAME, message) ; ParticipantClient.getClient().sendSoapFault(faultAddressingContext, soapFault, instanceIdentifier) ; } catch (final Throwable th) { if (WSTLogger.logger.isTraceEnabled()) { WSTLogger.logger.tracev("Unexpecting exception while sending InvalidState", th) ; } } }
ParticipantClient.getClient().sendPrepare(participant, createContext(), instanceIdentifier) ;
ParticipantClient.getClient().sendCommit(participant, createContext(), instanceIdentifier) ;
/** * Send a fault. * @param map The addressing context. * @param soapFault The SOAP fault. * @param identifier The arjuna instance identifier. * @throws com.arjuna.webservices.SoapFault For any errors. * @throws java.io.IOException for any transport errors. */ public void sendSoapFault(final MAP map, final SoapFault soapFault, final InstanceIdentifier identifier) throws SoapFault, IOException { ParticipantPortType port = getPort(null, map, faultAction); // convert fault to the wire format and dispatch it to the initiator soapFault.setAction(faultAction) ; Fault fault = ((SoapFault11)soapFault).toFault(); port.soapFault(fault); }
/** * 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 the rollback message. * */ private void sendRollback() { try { ParticipantClient.getClient().sendRollback(participant, createContext(), instanceIdentifier) ; } catch (final Throwable th) { if (WSTLogger.logger.isTraceEnabled()) { WSTLogger.logger.tracev("Unexpecting exception while sending Rollback", th) ; } } }
/** * Send an unknown transaction fault. * * @param map The addressing context. * @param arjunaContext The arjuna context. * */ private void sendUnknownTransaction(final MAP map, final ArjunaContext arjunaContext) { // KEV add check for recovery final MAP faultAddressingContext = AddressingHelper.createFaultContext(map, MessageId.getMessageId()) ; final InstanceIdentifier instanceIdentifier = arjunaContext.getInstanceIdentifier() ; try { final String message = WSTLogger.i18NLogger.get_wst11_messaging_CoordinatorProcessorImpl_sendUnknownTransaction_1(); final SoapFault soapFault = new SoapFault11(SoapFaultType.FAULT_SENDER, AtomicTransactionConstants.WSAT_ERROR_CODE_UNKNOWN_TRANSACTION_QNAME, message) ; ParticipantClient.getClient().sendSoapFault(faultAddressingContext, soapFault, instanceIdentifier) ; } catch (final Throwable th) { if (WSTLogger.logger.isTraceEnabled()) { WSTLogger.logger.tracev("Unexpecting exception while sending InvalidState", th) ; } } }
ParticipantClient.getClient().sendPrepare(participant, createContext(), instanceIdentifier) ;
ParticipantClient.getClient().sendCommit(participant, createContext(), instanceIdentifier) ;
/** * Send a fault. * @param map The addressing context. * @param soapFault The SOAP fault. * @param identifier The arjuna instance identifier. * @throws com.arjuna.webservices.SoapFault For any errors. * @throws java.io.IOException for any transport errors. */ public void sendSoapFault(final MAP map, final SoapFault soapFault, final InstanceIdentifier identifier) throws SoapFault, IOException { ParticipantPortType port = getPort(null, map, faultAction); // convert fault to the wire format and dispatch it to the initiator soapFault.setAction(faultAction) ; Fault fault = ((SoapFault11)soapFault).toFault(); port.soapFault(fault); }
/** * 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 the rollback message. * */ private void sendRollback() { try { ParticipantClient.getClient().sendRollback(participant, createContext(), instanceIdentifier) ; } catch (final Throwable th) { if (WSTLogger.logger.isTraceEnabled()) { WSTLogger.logger.tracev("Unexpecting exception while sending Rollback", th) ; } } }
/** * Send the UnknownTransaction message. * */ private void sendUnknownTransaction(final MAP map, final ArjunaContext arjunaContext) { try { final MAP faultMAP = AddressingHelper.createFaultContext(map, MessageId.getMessageId()) ; final InstanceIdentifier instanceIdentifier = arjunaContext.getInstanceIdentifier() ; final String message = WSTLogger.i18NLogger.get_wst11_messaging_engines_CoordinatorEngine_sendUnknownTransaction_1(); final SoapFault soapFault = new SoapFault11(SoapFaultType.FAULT_SENDER, AtomicTransactionConstants.WSAT_ERROR_CODE_UNKNOWN_TRANSACTION_QNAME, message) ; ParticipantClient.getClient().sendSoapFault(faultMAP, soapFault, instanceIdentifier) ; } catch (final Throwable th) { WSTLogger.i18NLogger.warn_wst11_messaging_engines_CoordinatorEngine_sendUnknownTransaction_2(id, th); } }
/** * 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); }