Ejemplo n.º 1
0
 public void setRollbackOnly() throws IllegalStateException, SystemException {
   assertTmOk("tx set rollback only");
   Thread thread = Thread.currentThread();
   TransactionImpl tx = txThreadMap.get(thread);
   if (tx == null) {
     throw new IllegalStateException("Not in transaction");
   }
   tx.setRollbackOnly();
 }