Exemplo n.º 1
0
 void setRollbackOnly() {
   try {
     transactionManager.setRollbackOnly();
   } catch (IllegalStateException e) {
     // this exception always get generated in a finally block and
     // when it happens another exception has already been thrown
     // (most likley NotInTransactionException)
     logger.debug("Failed to set transaction rollback only", e);
   } catch (javax.transaction.SystemException se) {
     // our TM never throws this exception
     logger.error("Failed to set transaction rollback only", se);
   }
 }