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
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