On Page 487, it's written that :
A bean that calls setRollbackOnly() must be in a transaction.
The questions are:
- What would happen if a bean calling setRollbackOnly() is NOT in a transaction? Does it throw some exception? If yes which one?
- Does the above type of constraint applies to the other methods as well? (getRollbackOnly(), getStatus(), ...)?
A bean that calls setRollbackOnly() must be in a transaction.
The questions are:
- What would happen if a bean calling setRollbackOnly() is NOT in a transaction? Does it throw some exception? If yes which one?
- Does the above type of constraint applies to the other methods as well? (getRollbackOnly(), getStatus(), ...)?