How to programmatically commit or rollback a transaction in Oracle ADF?

Running a commit or a rollback when a user trigger an Action Listener in your java Bean is the first thing you’ll need to know in Oracle ADF.

The easiest way to do so is to retreive the transaction used by your user in the Application Module and trigger a Commit or Rollback while catching any validation exception that could occur.

I also like to leverage the getViewObjectFromIterator from the JSFUtils class to simply commit the ViewObject the user modified.

Here is how i usually do it :

Leave a Comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Scroll to Top