What is MDS?
Metadata Services (MDS) is a feature provided by oracle to store customization and personalization information in a repository. The repository can either be stored in a database or in a file system as we will see.
To apply MDS to your application follow this:
Pages should be (.jspx) not (.jsp).
In your project properties –> ADF View check on “Enable User Customization” then select “Across Sessions Using MDS”.
Create a new class like this
This class has two main functions:
– getName() which return the folder name that hold all users changes.
– getValue() which return the folder name for the login user. This folder should be unique for every login user and will saved inside the getName() folder.
In Application Resources –> Descriptors –> ADF META-INF open adf-config.xml.
In adf-config file go to MDS Configurations and add your class
In adf-config file go to View tab and add all Tags.
Now you apply MDS to your application.
If you run your application in Integrated Weblogic there will be no problem, you should only specify the path to store the users changes (changes will stored in file system). You will find this path in your Application properties –> Run –> MDS.
If you deploy your application in standalone weblogic server you should setup Repository Creation Utility (RCU). You can download it from here
RCU will create a new schema in your database which hold all the changes.
Unzip RCU downloaded file and go to rcuHome –> BIN and run rcu.bat.
Select Create then Press Next
Enter Database connection with sysdba username and password then press next
If any error message appear press ignore
Select Metadata Services Then Press Next
Enter the password for the newly created User in database then press Next. Then follow all other steps until Finish
After finishing installation of RCU you should configure you weblogic domain to the MDS Repository.
Open your weblogic Enterprise manager using URl like
Enter weblogic username and password
Right click in you Weblogic domain the choose “Metadata Repositories”
Press Register Button and Enter Database Connection then Press Query
You will find your repository information press on your repository and enter Repository Name and Schema Password Then Press OK.
Now you register your MDS to Your Weblogic Domain.
You can select it and choose the target.
Weblogic automatic create a data source for connecting to your MDS Repository. If you go to Weblogic Console (http://localhost:7001/console) and go to Services –> Data Sources you will find a newly Data Source
Deploy your application directly from JDeveloper to your weblogic server the MDS Deployment Configuration will automatically opened with the configurations of your MDS Repository you should only enter the Position Name. Souce
RAD Framework with most commonly used components of any Front End Application available as inbuilt feature
Model-View-Controller (MVC) design pattern and offers an integrated solution that covers all the layers of this architecture with solution to such areas as:
ORM and Data Persistence
Reusable Task-flow approach,
Rich Web user interface elements,
Data binding to UI,
Customization via sandboxes etc
Separation of Business Logic implementation details, via metadata and use of this metadata-driven architecture enables developers to focus on the business logic and user experience.
Drag-n-Drop features, via JDeveloper IDE, provides the ease to use and customize.
ADF Skin Editor: New ADF Skin editor for visually creating and modifying the appearance of ADF Faces applications.(JDeveloper 11G and above)
JSF 2.0: JSF 2.0 support in the IDE and for ADF applications. (JDev 11g R2 release)
ADF Faces and Data Visualization Tools (DVT) support touch gestures for interactivity on the touch-enabled devices, such as touch support for drag and drop, tooltips, data tips, and context menus.
ADF Faces and DVT components are certified on iPad. Additionally, ADF DVT Graph and Gauge components support rendering in HTML5.
MDS is metadata service that is used to store metadata information. When you use ADF, it generates lot of internal files about its own components and DB binding details. All these are stored internally by ADF into MDS.
ADS (Active Data service)- This is used in ADF to push any data changes automatically from the back end into the portal layer. This is different from Ajax which is used to send request from UI to data service layer.
For obtaining parameter from URL in java code in Oracle ADF use the below code
Use the code: String test = FacesContext.
You want to be able to see all the sql-statements and DML-statements that your ADF application is executing.
Just add the following java option to the run configuration : -Djbo.debugoutput=console
While this will give you everything you need, you get a lot of clutter and it is difficult to see the information you are looking for.
ADF Logger: While you just run your application, no special run configuration or debug setting is needed, you can change the log level of the different ADF components. The change is immediate active, no rerun or stopping of the jvm is needed.
In case you want to see the SQL and DML statements you need to set the oracle.jbo.common.ADFLoggerDiagnosticImpl to FINEST, anything lower will not show the statements.
How to set this logger level?
Follow this procedure to use the logger level:
Just run or debug your application.
In the Log-pane you should see your application starting up.
In this pane, there is an Action-menu. Choose here the “Oracle Diagnostic Logging”-option.
This will open a new tab, called “logging.xml”.
Now walk through the tree until you find the
And then select in the Level column “Finest” or type “TRACE:32”.
This change is active immediately. You should see appearing the SQL-statements in the Log pane when you are walking through your application.