How to run MDS with database repository in jDeveloper?
816482Mar 1 2011 — edited Apr 29 2011Hi,
I succeeded to turn on the MDS with database repository on the server! Here are the steps that I did:
1. I created the Database repository using "Repository Creation Utility"
2. I created data source to the repository
3. I registered metadata repository with Oracle Enterprise Manager.
4. I deploy the application with Oracle Enterprise Manager and it works well and all the customizations go to Database.
The problem is that I cannot configure the application to persist changes to the database repository when I start the application in jDeveloper.
In order to run it with jDeveloper I did the following:
1. I created data source to the repository in http://127.0.0.1:7101/console/
2. I also configured adf-config.xml as described.
3. I registered metadata repository with WLST - registerMetadataDBRepository() and created partition createMetadataPartition()
4. I debug in jDeveloper and I get the warning "*Info: Any customizations created while running the application will be written to 'D:\MDS'.*"
Here is my adf-config.xml file:
<?xml version="1.0" encoding="windows-1251" ?>
<adf-config xmlns="http://xmlns.oracle.com/adf/config"
xmlns:adf="http://xmlns.oracle.com/adf/config/properties"
xmlns:sec="http://xmlns.oracle.com/adf/security/config">
<adf:adf-properties-child xmlns="http://xmlns.oracle.com/adf/config/properties">
<adf-property name="adfAppUID" value="InsisGen.com.fadata.insis"/>
</adf:adf-properties-child>
<sec:adf-security-child xmlns="http://xmlns.oracle.com/adf/security/config">
<CredentialStoreContext credentialStoreClass="oracle.adf.share.security.providers.jps.CSFCredentialStore"
credentialStoreLocation="../../src/META-INF/jps-config.xml"/>
<sec:JaasSecurityContext initialContextFactoryClass="oracle.adf.share.security.JAASInitialContextFactory"
jaasProviderClass="oracle.adf.share.security.providers.jps.JpsSecurityContext"
authorizationEnforce="false"
authenticationRequire="true"/>
</sec:adf-security-child>
<adf-faces-config xmlns="http://xmlns.oracle.com/adf/faces/config">
<persistent-change-manager>
<persistent-change-manager-class>oracle.adf.view.rich.change.MDSDocumentChangeManager</persistent-change-manager-class>
</persistent-change-manager>
</adf-faces-config>
<adf-mds-config xmlns="http://xmlns.oracle.com/adf/mds/config">
<mds-config xmlns="http://xmlns.oracle.com/mds/config" version="11.1.1.000">
<persistence-config>
<metadata-store-usages>
<metadata-store-usage id="MAR_TargetRepos" default-cust-store="true"
deploy-target="true">
<metadata-store class-name="oracle.mds.persistence.stores.db.DBMetadataStore">
<property name="jndi-datasource" value="*jdbc/mds/REP_DB*"/>
<property name="partition-name" value="*PART1*"/>
<property name="repository-name" value="*mds-REP_DB*"/>
</metadata-store>
</metadata-store-usage>
</metadata-store-usages>
</persistence-config>
</mds-config>
</adf-mds-config>
</adf-config>
I registered registerMetadataDBRepository() with repository name *"REP_DB"* and it creates it automatically as *"mds-REP_DB"* and the JNDIi name becomes *"jdbc/mds/REP_DB"*
I created partition createMetadataPartition(repository='mds-REP_DB', partition='PART1')
I get the warning "*Info: Any customizations created while running the application will be written to 'D:\MDS'.*" and the customization go to D:\MDS
Any help will be appreciated :)
Niki