Forums Register Login

Does EJB Container rollbacks the Transaction in case of a RuntimeException??

+Pie Number of slices to send: Send
Hi ,

I am having a query in understanding rollback of the Transactions in case of a RuntimeException .

Please let me know this

While executing a Method in case of a Runtime Exception , will the container will automatically rollback the Transaction ??


Thanks in advance .
+Pie Number of slices to send: Send
It depends on the transaction attributes of the method.
+Pie Number of slices to send: Send
I have set it to NOT SUPPOURTED , will the rollback of the Transaction will happen in case of a RuntimeException ??

Thanks in advance .
+Pie Number of slices to send: Send
 

Ravi Kiran V wrote:I have set it to NOT SUPPOURTED , will the rollback of the Transaction will happen in case of a RuntimeException ??

Thanks in advance .



When you set it to NOT_SUPPORTED, then there is no transaction at all. So RuntimeException won't do anything!
Bras cause cancer. And tiny ads:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 1243 times.
Similar Threads
Txn not automatically rolling back after RemoteException
Exception
Commit Rollback not working
page 561 exercise question
Propagation of EJBException
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 09:57:49.