transactionManager.createLocalTransaction(client, transactionId);
}
public void commitTransaction(BrokerClient client, String transactionId) throws JMSException {
try {
Transaction transaction = transactionManager.getLocalTransaction(transactionId);
transaction.commit(true);
}
catch (XAException e) {
// TODO: I think the XAException should propagate all the way to the client.
throw (JMSException) new JMSException(e.getMessage()).initCause(e);
}