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 ?
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
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop