Saturday, November 3, 2001 10:29 AM
Hi ! I have a stateless session bean calling a BMP entity bean,
with the transaction attrubute set to "Required" and
the IsolationLevel is "Tx_Repeatable_Read "
In my business method of session bean,
I perform two operations :
1. Lookup entity bean, find by criteria and call the
business method of entity bean, which inturn updates a table.
2. In the same business method, I remove a row from the other table.
Tell us a best way of Exception Handling that can be used so that
either in case of sucess both gets comitted or
or in case of a failure both rollback.Explain how to use
EJBContext.setRollbackOnly() effectively in such cases?
Re: Transaction Handling
Saturday, November 3, 2001 12:56 PM