@ Override public void setRollbackOnly ( ) throws IllegalStateException , SystemException { Transaction tx = getTransaction ( ) ; if ( tx == null ) throw new IllegalStateException ( "no transaction associated with calling thread" ) ; tx . setRollbackOnly ( ) ; }
Mark the transaction associated with the calling thread for rollback only .