public void rollback () throws UnknownTransactionException, SystemException { final MAP map = AddressingHelper.createNotificationContext(MessageId.getMessageId()) ; try { CompletionCoordinatorRPCClient.getClient().sendRollback(_completionCoordinator, map) ; } catch (final SoapFault soapFault) { if (ArjunaTXConstants.UNKNOWNTRANSACTION_ERROR_CODE_QNAME.equals(soapFault.getSubcode())) { throw new UnknownTransactionException(soapFault.getMessage()); } throw new SystemException(soapFault.getMessage()) ; } catch (final Throwable th) { th.printStackTrace() ; throw new SystemException(th.getMessage()) ; } } }
/** * 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 boolean sendRollback(final W3CEndpointReference endpoint, final MAP map) throws SoapFault, IOException { CompletionCoordinatorRPCPortType port = getPort(endpoint, map, rollbackAction); Notification rollback = new Notification(); try { return port.rollbackOperation(rollback); } catch (SOAPFaultException sfe) { throw SoapFault11.create(sfe); } }
public void commit () throws TransactionRolledBackException, UnknownTransactionException, SystemException { final MAP map = AddressingHelper.createNotificationContext(MessageId.getMessageId()) ; boolean result; try { result = CompletionCoordinatorRPCClient.getClient().sendCommit(_completionCoordinator, map) ; } catch (final SoapFault soapFault) { if (ArjunaTXConstants.UNKNOWNTRANSACTION_ERROR_CODE_QNAME.equals(soapFault.getSubcode())) { throw new UnknownTransactionException(soapFault.getMessage()); } throw new SystemException(soapFault.getMessage()) ; } catch (final Exception e) { throw new SystemException(e.getMessage()) ; } catch (final Throwable th) { th.printStackTrace() ; throw new SystemException(th.getMessage()) ; } if (!result) { throw new TransactionRolledBackException() ; } }
public void commit () throws TransactionRolledBackException, UnknownTransactionException, SystemException { final MAP map = AddressingHelper.createNotificationContext(MessageId.getMessageId()) ; boolean result; try { result = CompletionCoordinatorRPCClient.getClient().sendCommit(_completionCoordinator, map) ; } catch (final SoapFault soapFault) { if (ArjunaTXConstants.UNKNOWNTRANSACTION_ERROR_CODE_QNAME.equals(soapFault.getSubcode())) { throw new UnknownTransactionException(soapFault.getMessage()); } throw new SystemException(soapFault.getMessage()) ; } catch (final Exception e) { throw new SystemException(e.getMessage()) ; } catch (final Throwable th) { th.printStackTrace() ; throw new SystemException(th.getMessage()) ; } if (!result) { throw new TransactionRolledBackException() ; } }
public void rollback () throws UnknownTransactionException, SystemException { final MAP map = AddressingHelper.createNotificationContext(MessageId.getMessageId()) ; try { CompletionCoordinatorRPCClient.getClient().sendRollback(_completionCoordinator, map) ; } catch (final SoapFault soapFault) { if (ArjunaTXConstants.UNKNOWNTRANSACTION_ERROR_CODE_QNAME.equals(soapFault.getSubcode())) { throw new UnknownTransactionException(soapFault.getMessage()); } throw new SystemException(soapFault.getMessage()) ; } catch (final Throwable th) { th.printStackTrace() ; throw new SystemException(th.getMessage()) ; } } }
public void commit () throws TransactionRolledBackException, UnknownTransactionException, SystemException { final MAP map = AddressingHelper.createNotificationContext(MessageId.getMessageId()) ; boolean result; try { result = CompletionCoordinatorRPCClient.getClient().sendCommit(_completionCoordinator, map) ; } catch (final SoapFault soapFault) { if (ArjunaTXConstants.UNKNOWNTRANSACTION_ERROR_CODE_QNAME.equals(soapFault.getSubcode())) { throw new UnknownTransactionException(soapFault.getMessage()); } throw new SystemException(soapFault.getMessage()) ; } catch (final Exception e) { throw new SystemException(e.getMessage()) ; } catch (final Throwable th) { th.printStackTrace() ; throw new SystemException(th.getMessage()) ; } if (!result) { throw new TransactionRolledBackException() ; } }
/** * 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 boolean sendCommit(final W3CEndpointReference endpoint, final MAP map) throws SoapFault, IOException { CompletionCoordinatorRPCPortType port = getPort(endpoint, map, commitAction); Notification commit = new Notification(); try { return port.commitOperation(commit); } catch (SOAPFaultException sfe) { throw SoapFault11.create(sfe); } }
public void rollback () throws UnknownTransactionException, SystemException { final MAP map = AddressingHelper.createNotificationContext(MessageId.getMessageId()) ; try { CompletionCoordinatorRPCClient.getClient().sendRollback(_completionCoordinator, map) ; } catch (final SoapFault soapFault) { if (ArjunaTXConstants.UNKNOWNTRANSACTION_ERROR_CODE_QNAME.equals(soapFault.getSubcode())) { throw new UnknownTransactionException(soapFault.getMessage()); } throw new SystemException(soapFault.getMessage()) ; } catch (final Throwable th) { th.printStackTrace() ; throw new SystemException(th.getMessage()) ; } } }
/** * 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 boolean sendCommit(final W3CEndpointReference endpoint, final MAP map) throws SoapFault, IOException { CompletionCoordinatorRPCPortType port = getPort(endpoint, map, commitAction); Notification commit = new Notification(); try { return port.commitOperation(commit); } catch (SOAPFaultException sfe) { throw SoapFault11.create(sfe); } }
/** * 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 boolean sendRollback(final W3CEndpointReference endpoint, final MAP map) throws SoapFault, IOException { CompletionCoordinatorRPCPortType port = getPort(endpoint, map, rollbackAction); Notification rollback = new Notification(); try { return port.rollbackOperation(rollback); } catch (SOAPFaultException sfe) { throw SoapFault11.create(sfe); } }
/** * 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 boolean sendCommit(final W3CEndpointReference endpoint, final MAP map) throws SoapFault, IOException { CompletionCoordinatorRPCPortType port = getPort(endpoint, map, commitAction); Notification commit = new Notification(); try { return port.commitOperation(commit); } catch (SOAPFaultException sfe) { throw SoapFault11.create(sfe); } }
/** * 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 boolean sendRollback(final W3CEndpointReference endpoint, final MAP map) throws SoapFault, IOException { CompletionCoordinatorRPCPortType port = getPort(endpoint, map, rollbackAction); Notification rollback = new Notification(); try { return port.rollbackOperation(rollback); } catch (SOAPFaultException sfe) { throw SoapFault11.create(sfe); } }