try {
for (int i = 0; i < containerManagers.length; i++) {
containerManagers[i].rollbackTransaction(client, transactionId);
}
Transaction transaction = transactionManager.getLocalTransaction(transactionId);
transaction.rollback();
}
catch (XAException e) {
// TODO: I think the XAException should propagate all the way to the client.
throw (JMSException) new JMSException(e.getMessage()).initCause(e);
}