Forums Register Login

EJB Exception

+Pie Number of slices to send: Send
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
Not looking good. I think this might be the end. Wait! Is that a tiny ad?
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 1336 times.
Similar Threads
Topic: Big doubt! Spec Page 361 -- IllegalStateException for Supports attribute.
Doubts in Enthuware mock Questions
Question about Transactions in EJB / MDB scenario
EJB 3.0 Transaction Question
Big doubt! Spec Page 361 -- IllegalStateException for Supports attribute.
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 16:47:27.