| Author |
Why just marking and not rolling back?
|
Hussein Baghdadi
clojure forum advocate
Bartender
Joined: Nov 08, 2003
Posts: 3400
|
|
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.
|
 |
Roger Chung-Wee
Ranch Hand
Joined: Sep 29, 2002
Posts: 1683
|
|
|
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.
|
SCJP 1.4, SCWCD 1.3, SCBCD 1.3
|
 |
Edvins Reisons
Ranch Hand
Joined: Dec 11, 2006
Posts: 364
|
|
John, CMT means container - managed
|
 |
 |
|
|
subject: Why just marking and not rolling back?
|
|
|