Hi. setRollbackOnly() method in CMT beans informs the transaction manager that this transaction is marked to be rolled-back. Why this marking thing? why not rollback immediately? Thanks.
posted 7 years ago
A CMT bean marks a transaction for rollback to protect data integrity before throwing an application exception, because application exceptions do not automatically cause the EJB container to rollback the transaction.