Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

EJB Exception

 
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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
    Bookmark Topic Watch Topic
  • New Topic