ADF Provides extension to standard Java Preferences API and is maintained in MDS Repository. 

You can reference following Javadoc and Blog:

But this does not work in Plain ADF application and you will run into following exception.

oracle.mds.exception.ReadOnlyStoreException: MDS-01273: The operation on the resource /oracle/adf/share/prefs/data/preferences.xml failed because source metadata store mapped to the namespace / DEFAULT is read only.

To resolve this issue, change your application’s adf-config.xml file as highlighted below.


<persistence-config>
       <metadata-namespaces>
          <namespace path=”/oracle/adf/share/prefs” metadata-store-usage=”MAR_TargetRepos”/>
          <namespace path=”/persdef” metadata-store-usage=”MAR_TargetRepos”/>
       </metadata-namespaces>
       <metadata-store-usages>
          <metadata-store-usage id=”MAR_TargetRepos” deploy-target=”true” default-cust-store=”true”>
          </metadata-store-usage>
       </metadata-store-usages>
</persistence-config>

Chandresh Patel

I have been working with Java EE technologies since 2000. After implementing IBM WebSphere and custom framework solutions, my past 10 years have been focused on Oracle Fusion Middleware such as WebLogic, ADF, WebCenter and Coherence. I have been part of many automation projects in the past and have a passion for automation capabilities to help our customers deliver software faster and with higher quality. In my current role as a Principal Architect at Flexagon, I am driving the FlexDeploy product strategy and development to build DevOps/CI/CD features that help our customers.

More posts by Chandresh Patel
    

Leave a Reply

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