How can I know if an EJB is in transaction context?
843829Sep 24 2002 — edited May 13 2003Hi all!
I'm getting the following error when I call ejbContext.getRollbackOnly():
[Exception: java.lang.IllegalStateException; Message: Illegal attempt to call EJBContext.getRollbackOnly() from an EJB that was not participating in a transaction.]
How can I verify if the EJB (CMT) is participating in a transaction before call getRollbackOnly or setRollbackOnly?
Thanks,
Denis Macedo