Which mechanism can be used to learn if an application exception has resulted in a tx being rolled back ???
Correct ans given :- The bean provider can specify which exceptions will mark a tx for rollback before the exception is throw .. HOW .....
By invoking setRollbackOnly().
In case of a checked exception, and if the bean provider knows that such exception will cause the transaction to end badly, it's the bean provider's responsibility to invoke setRollbackOnly before rethrowing the exception. (HF p.542)
Marco Tedone<br />SCJP1.4,SCJP5,SCBCD,SCWCD
Ever since I found this suit I've felt strange new needs. And a tiny ad: