protected void rollback(Exception ex) { if (TransactionCoordination.getInstance().getTransaction() != null) { TransactionCoordination.getInstance().rollbackCurrentTransaction(); } if (ex instanceof MessagingException) { MessagingException messagingException = (MessagingException) ex; messagingException.setCauseRollback(true); } }
((MessagingException)t).setCauseRollback(true);