As with
ejb core spec page no 347
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