Rollback a transaction in ADF
463056Mar 15 2007 — edited Mar 15 2007I'm using ADF, JSP, Struts. I have a page to delete a record. If there occurs any error (like child record found) while deleting, I show the error or error page.
The point is I will get the 'Child record found' only when I 'commit' the transaction. So, at this point the record being deleted and committed is locked, and at the same time the record is not deleted because of 'child record found'. I am not able to 'Rollback' as well, since I have already tried to 'commit'. So, the row is in deadlock situation.
All I wanted to do is 'Cancel' the transaction (i.e) cancel the 'Commit' that I have supplied. Please tell me how do cancel an attemped 'commit'.