File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
EJB and other Java EE Technologies
Why just marking and not rolling back?
clojure forum advocate
Joined: Nov 08, 2003
Feb 24, 2008 01:00:00
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?
Joined: Sep 29, 2002
Feb 24, 2008 04:45:00
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
container to rollback the transaction.
SCJP 1.4, SCWCD 1.3, SCBCD 1.3
Joined: Dec 11, 2006
Feb 25, 2008 02:03:00
I agree. Here's the link:
subject: Why just marking and not rolling back?
transaction rollback exception...
Transaction Rollback not rolling back the Database updates !!
Doubt regarding transaction context
Corba.TRANSACTION_ROLLEDBACK after 3 method invokations
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015