The container must throw the java.lang.IllegalStateException if the EJBContext.getRollbackOnly method is invoked from a business method executing with the SUPPORTS,NOT_SUPPORTED, or NEVER transaction attribute.
Why in case of SUPPORTS IllegalStateException is thrown if there is a transaction context associated with caller method ?
Thanks Pavan Kumar
SCJP 1.4 (93%)<br />SCBCD 5 (96%)
posted 8 years ago
SUPPORTS does not necessarily have to be invoked with a transaction. It can even be invoked without a transaction. That is why it is said to throw an IlledgaStateException as you cannot be sure if it is associated with a transaction.
if who i am is what i have, and what i have is lost, then who am i?<br /> <br />SCJP 5.0<br />SCWCD 1.4<br />SCBCD preparing
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads