+1 on tm.setRollbackOnly() (It's part of the Java Transaction API (JTA), quite lower than EJB)
Or we could call it tm.setAbortOnly() if we want our naming to be coherent.
+1 on tm.setRollbackO nly()
(It's part of the Java Transaction API (JTA), quite lower than EJB)
Or we could call it tm.setAbortOnly() if we want our naming to be coherent.