What is the practical difference in UserTransaction object between methods below?
rollback() - Roll back the transaction associated with the current thread.
setRollbackOnly() - Modify the transaction associated with the current thread such that the only possible outcome of the transaction is to roll back the transaction.
This description is not enough for me. Does it mean that rollback method throws exception immediately or what?