/** * 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 SoapFault11, IOException { final TerminationCoordinatorRPCPortType port = getPort(coordinator, map, completeAction); final NotificationType complete = new NotificationType(); try { port.completeOperation(complete); } catch (SOAPFaultException sfe) { throw SoapFault11.create(sfe); } }
public void close () throws TransactionRolledBackException, UnknownTransactionException, SystemException { final MAP map = AddressingHelper.createNotificationContext(MessageId.getMessageId()) ; try { TerminationCoordinatorRPCClient.getClient().sendClose(_terminationCoordinator, map, new InstanceIdentifier(_id)) ; } catch (SoapFault11 soapFault) { if ((ArjunaTXConstants.TRANSACTIONROLLEDBACK_ERROR_CODE_QNAME.equals(soapFault.getSubcode()))) { throw new TransactionRolledBackException(soapFault.getMessage()); } else if (ArjunaTXConstants.UNKNOWNTRANSACTION_ERROR_CODE_QNAME.equals(soapFault.getSubcode())) { throw new UnknownTransactionException(soapFault.getMessage()) ; } throw new SystemException(soapFault.getMessage()) ; } catch (Exception e) { throw new SystemException(); } }
public void cancel () throws FaultedException, UnknownTransactionException, SystemException { final MAP map = AddressingHelper.createNotificationContext(MessageId.getMessageId()) ; try { TerminationCoordinatorRPCClient.getClient().sendCancel(_terminationCoordinator, map, new InstanceIdentifier(_id)) ; } catch (SoapFault11 soapFault) { if (ArjunaTXConstants.FAULTED_ERROR_CODE_QNAME.equals(soapFault.getSubcode())) { throw new FaultedException(soapFault.getMessage()) ; } else if (ArjunaTXConstants.UNKNOWNTRANSACTION_ERROR_CODE_QNAME.equals(soapFault.getSubcode())) { throw new UnknownTransactionException(soapFault.getMessage()) ; } throw new SystemException(soapFault.getMessage()) ; } catch (Exception e) { throw new SystemException(e.getMessage()); } catch (final Throwable th) { th.printStackTrace() ; throw new SystemException(th.getMessage()) ; } }
public void complete () throws FaultedException, UnknownTransactionException, SystemException { final MAP map = AddressingHelper.createNotificationContext(MessageId.getMessageId()) ; try { TerminationCoordinatorRPCClient.getClient().sendComplete(_terminationCoordinator, map, new InstanceIdentifier(_id)) ; } catch (SoapFault11 soapFault) { if (ArjunaTXConstants.FAULTED_ERROR_CODE_QNAME.equals(soapFault.getSubcode())) { throw new FaultedException(soapFault.getMessage()) ; } else if (ArjunaTXConstants.UNKNOWNTRANSACTION_ERROR_CODE_QNAME.equals(soapFault.getSubcode())) { throw new UnknownTransactionException(soapFault.getMessage()) ; } throw new SystemException(soapFault.getMessage()) ; } catch (Exception e) { throw new SystemException(e.getMessage()); } catch (final Throwable th) { th.printStackTrace() ; throw new SystemException(th.getMessage()) ; } }
public void close () throws TransactionRolledBackException, UnknownTransactionException, SystemException { final MAP map = AddressingHelper.createNotificationContext(MessageId.getMessageId()) ; try { TerminationCoordinatorRPCClient.getClient().sendClose(_terminationCoordinator, map, new InstanceIdentifier(_id)) ; } catch (SoapFault11 soapFault) { if ((ArjunaTXConstants.TRANSACTIONROLLEDBACK_ERROR_CODE_QNAME.equals(soapFault.getSubcode()))) { throw new TransactionRolledBackException(soapFault.getMessage()); } else if (ArjunaTXConstants.UNKNOWNTRANSACTION_ERROR_CODE_QNAME.equals(soapFault.getSubcode())) { throw new UnknownTransactionException(soapFault.getMessage()) ; } throw new SystemException(soapFault.getMessage()) ; } catch (Exception e) { throw new SystemException(); } }
public void cancel () throws FaultedException, UnknownTransactionException, SystemException { final MAP map = AddressingHelper.createNotificationContext(MessageId.getMessageId()) ; try { TerminationCoordinatorRPCClient.getClient().sendCancel(_terminationCoordinator, map, new InstanceIdentifier(_id)) ; } catch (SoapFault11 soapFault) { if (ArjunaTXConstants.FAULTED_ERROR_CODE_QNAME.equals(soapFault.getSubcode())) { throw new FaultedException(soapFault.getMessage()) ; } else if (ArjunaTXConstants.UNKNOWNTRANSACTION_ERROR_CODE_QNAME.equals(soapFault.getSubcode())) { throw new UnknownTransactionException(soapFault.getMessage()) ; } throw new SystemException(soapFault.getMessage()) ; } catch (Exception e) { throw new SystemException(e.getMessage()); } catch (final Throwable th) { th.printStackTrace() ; throw new SystemException(th.getMessage()) ; } }
public void complete () throws FaultedException, UnknownTransactionException, SystemException { final MAP map = AddressingHelper.createNotificationContext(MessageId.getMessageId()) ; try { TerminationCoordinatorRPCClient.getClient().sendComplete(_terminationCoordinator, map, new InstanceIdentifier(_id)) ; } catch (SoapFault11 soapFault) { if (ArjunaTXConstants.FAULTED_ERROR_CODE_QNAME.equals(soapFault.getSubcode())) { throw new FaultedException(soapFault.getMessage()) ; } else if (ArjunaTXConstants.UNKNOWNTRANSACTION_ERROR_CODE_QNAME.equals(soapFault.getSubcode())) { throw new UnknownTransactionException(soapFault.getMessage()) ; } throw new SystemException(soapFault.getMessage()) ; } catch (Exception e) { throw new SystemException(e.getMessage()); } catch (final Throwable th) { th.printStackTrace() ; throw new SystemException(th.getMessage()) ; } }
public void close () throws TransactionRolledBackException, UnknownTransactionException, SystemException { final MAP map = AddressingHelper.createNotificationContext(MessageId.getMessageId()) ; try { TerminationCoordinatorRPCClient.getClient().sendClose(_terminationCoordinator, map, new InstanceIdentifier(_id)) ; } catch (SoapFault11 soapFault) { if ((ArjunaTXConstants.TRANSACTIONROLLEDBACK_ERROR_CODE_QNAME.equals(soapFault.getSubcode()))) { throw new TransactionRolledBackException(soapFault.getMessage()); } else if (ArjunaTXConstants.UNKNOWNTRANSACTION_ERROR_CODE_QNAME.equals(soapFault.getSubcode())) { throw new UnknownTransactionException(soapFault.getMessage()) ; } throw new SystemException(soapFault.getMessage()) ; } catch (Exception e) { throw new SystemException(); } }
public void cancel () throws FaultedException, UnknownTransactionException, SystemException { final MAP map = AddressingHelper.createNotificationContext(MessageId.getMessageId()) ; try { TerminationCoordinatorRPCClient.getClient().sendCancel(_terminationCoordinator, map, new InstanceIdentifier(_id)) ; } catch (SoapFault11 soapFault) { if (ArjunaTXConstants.FAULTED_ERROR_CODE_QNAME.equals(soapFault.getSubcode())) { throw new FaultedException(soapFault.getMessage()) ; } else if (ArjunaTXConstants.UNKNOWNTRANSACTION_ERROR_CODE_QNAME.equals(soapFault.getSubcode())) { throw new UnknownTransactionException(soapFault.getMessage()) ; } throw new SystemException(soapFault.getMessage()) ; } catch (Exception e) { throw new SystemException(e.getMessage()); } catch (final Throwable th) { th.printStackTrace() ; throw new SystemException(th.getMessage()) ; } }
public void complete () throws FaultedException, UnknownTransactionException, SystemException { final MAP map = AddressingHelper.createNotificationContext(MessageId.getMessageId()) ; try { TerminationCoordinatorRPCClient.getClient().sendComplete(_terminationCoordinator, map, new InstanceIdentifier(_id)) ; } catch (SoapFault11 soapFault) { if (ArjunaTXConstants.FAULTED_ERROR_CODE_QNAME.equals(soapFault.getSubcode())) { throw new FaultedException(soapFault.getMessage()) ; } else if (ArjunaTXConstants.UNKNOWNTRANSACTION_ERROR_CODE_QNAME.equals(soapFault.getSubcode())) { throw new UnknownTransactionException(soapFault.getMessage()) ; } throw new SystemException(soapFault.getMessage()) ; } catch (Exception e) { throw new SystemException(e.getMessage()); } catch (final Throwable th) { th.printStackTrace() ; throw new SystemException(th.getMessage()) ; } }
/** * 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 SoapFault11, IOException { final TerminationCoordinatorRPCPortType port = getPort(coordinator, map, completeAction); final NotificationType complete = new NotificationType(); try { port.completeOperation(complete); } catch (SOAPFaultException sfe) { throw SoapFault11.create(sfe); } }
/** * 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 SoapFault11, IOException { final TerminationCoordinatorRPCPortType port = getPort(coordinator, map, closeAction); final NotificationType close = new NotificationType(); try { port.closeOperation(close); } catch (SOAPFaultException sfe) { throw SoapFault11.create(sfe); } }
/** * 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 SoapFault11, IOException { final TerminationCoordinatorRPCPortType port = getPort(coordinator, map, closeAction); final NotificationType close = new NotificationType(); try { port.closeOperation(close); } catch (SOAPFaultException sfe) { throw SoapFault11.create(sfe); } }
/** * 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 SoapFault11, IOException { final TerminationCoordinatorRPCPortType port = getPort(coordinator, map, closeAction); final NotificationType close = new NotificationType(); try { port.closeOperation(close); } catch (SOAPFaultException sfe) { throw SoapFault11.create(sfe); } }
/** * 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 SoapFault11, IOException { final TerminationCoordinatorRPCPortType port = getPort(coordinator, map, cancelAction); final NotificationType cancel = new NotificationType(); try { port.cancelOperation(cancel); } catch (SOAPFaultException sfe) { throw SoapFault11.create(sfe); } }
/** * 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 SoapFault11, IOException { final TerminationCoordinatorRPCPortType port = getPort(coordinator, map, completeAction); final NotificationType complete = new NotificationType(); try { port.completeOperation(complete); } catch (SOAPFaultException sfe) { throw SoapFault11.create(sfe); } }
/** * 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 SoapFault11, IOException { final TerminationCoordinatorRPCPortType port = getPort(coordinator, map, cancelAction); final NotificationType cancel = new NotificationType(); try { port.cancelOperation(cancel); } catch (SOAPFaultException sfe) { throw SoapFault11.create(sfe); } }
/** * 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 SoapFault11, IOException { final TerminationCoordinatorRPCPortType port = getPort(coordinator, map, cancelAction); final NotificationType cancel = new NotificationType(); try { port.cancelOperation(cancel); } catch (SOAPFaultException sfe) { throw SoapFault11.create(sfe); } }