Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

EJB Exception

 
DhilipRaja Baskaran
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic