wood burning stoves 2.0*
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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
 
 
subject: EJB Exception
 
Similar Threads
Question about Transactions in EJB / MDB scenario
EJB 3.0 Transaction Question
Topic: Big doubt! Spec Page 361 -- IllegalStateException for Supports attribute.
Doubts in Enthuware mock Questions
Big doubt! Spec Page 361 -- IllegalStateException for Supports attribute.