}
}
catch (JMSException je) {
logger.fatal("Error rolling transaction back or determining the transaction mode.");
logger.fatal(je.getMessage(), je);
throw new TransportException(je.getMessage(), je);
}
}
catch (Exception e) {
logger.fatal("Unknown exception occurred while attempting to publish the message. Exception: " + e.getMessage());
logger.fatal(e.getMessage(), e);
TextMessage tMsg = (TextMessage)outMessage;
try {
logger.fatal("Message contents: \n" + tMsg.getText());
}
catch (JMSException je2) { }
throw new TransportException(e.getMessage(), e);
}
return true;
}