Skip to Main Content

Java Database Connectivity (JDBC)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Problem rolling back database changes

843854May 10 2004 — edited May 24 2004
Hi all,
I have a message driven bean which does a multiple update calls to an Oracle database. I want to commit all the db updates only at the end (after all update calls execute okay) and if there occurs any problem in any of the update calls, I want to rollback all the previously successful update calls I have already made. I am using container managed transaction via a mdb in Weblogic 7. I tried to use UserTransaction.setRollbackOnly() call but that did not completely help. This call rolled back the message altogether. All I wanted to do is, if there occurs any error during a database update, rollback just the database changes and just throw away the message. Is there a way I can just rollback the database changes? Any suggestions?? please.
Thanks
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 21 2004
Added on May 10 2004
6 comments
425 views