my dog learned polymorphism*
The moose likes EJB and other Java EE Technologies and the fly likes EJB Exception Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "EJB Exception" Watch "EJB Exception" New topic
Author

EJB Exception

DhilipRaja Baskaran
Greenhorn

Joined: Oct 08, 2008
Posts: 12
Hi,

I have an MDB in place for which the transaction attribute in deployment descriptor is set to "Not Supported" and the transaction is CMT and I have used ejbContext.setRollbackOnly() method in that mdb


I am getting below exception
::java.rmi.RemoteException: EJB Exception: ; nested exception is:
java.lang.OutOfMemoryError

After some debugging i found that for CMT bean when transaction attribute is set to "Not Supported" and if you use ejbContext.setRollbackOnly() then in this scenario we get IllegalstateException

But In my case i didnt got IllegalstateException exception whereas I got EJB Exception: ; nested exception is: java.lang.OutOfMemoryError


Let me know whether this Out-Of-memory exception can occur if we use ejbContext.setRollbackOnly()

Thanks in Advance
 
GeeCON Prague 2014
 
subject: EJB Exception