use of javax.jms.TransactionRolledBackException in project spring-framework by spring-projects.
the class JmsTransactionManager method doCommit.
@Override
protected void doCommit(DefaultTransactionStatus status) {
JmsTransactionObject txObject = (JmsTransactionObject) status.getTransaction();
Session session = txObject.getResourceHolder().getSession();
try {
if (status.isDebug()) {
logger.debug("Committing JMS transaction on Session [" + session + "]");
}
session.commit();
} catch (TransactionRolledBackException ex) {
throw new UnexpectedRollbackException("JMS transaction rolled back", ex);
} catch (JMSException ex) {
throw new TransactionSystemException("Could not commit JMS transaction", ex);
}
}
Aggregations