Wednesday 9 November 2011

Lesson03-Meta Data Store Archives

SOA Suite 11gR1 has a provision for sharing SOA artifacts through – Meta Data Store. This facilitates greater re-use of SOA artifacts such as XML Schemas, EBMs, WSDLs, Fault Policies, Rule repositories and Service Data Objects (SDOs) among others. can be file-based or database-based. Here are the steps to create and use file-based in JDeveloper.

MDS is created under <jdeveloper-home>/integration/seed directory. Default folder “soa” is used to store common system soa artifacts. All custom artifacts are supposed to be stored under a folder called “apps”, since this folder already exists in server.

Create directory structure under apps folder. In this example, I’ve created folder structure ../apps/com/wordpress/orafmw/training/xsd to store XML schema files. This ideally should match your schema structure.
image

In JDeveloper, expand Descriptors/ADF META-INF and open adf-config.xml.

image

Create an entry for metadata store location.
<metadata-namespaces>
<namespace metadata-store-usage=”mstore-usage_1″ path=”/soa/shared”/>
<namespace metadata-store-usage=”mstore-usage_2″ path=”/apps/com”/>
</metadata-namespaces>
Specify MDS storage location.
<metadata-store-usage id=”mstore-usage_2″>
<metadata-store class-name=”oracle.mds.persistence.stores.file.FileMetadataStore”>
<property value=”D:\PROGRAMS\OracleMiddleware11g\jdeveloper\integration” name=”metadata-path”/>
<property value=”seed” name=”partition-name”/>
</metadata-store>
</metadata-store-usage>
Use defined artifacts directly from MDS.
<xsd:schema elementFormDefault=”qualified”>
<xsd:import namespace=”http://orafmw.wordpress.com/training/mediator/ebm/OrderProcessing”
schemaLocation=”oramds:/apps/com/wordpress/orafmw/training/xsd/OrderProcessingEBM.xsd“/>
</xsd:schema>
Deploy MDS Repository to Weblogic Server
First, we need to create JAR file bundle to include schemas we need. Then we need to include this jar file into a SOA bundle that can be deployed to the SOA Server.
Create Generic Application – MediatorMetaData
orafmwschool_mediator_68
orafmwschool_mediator_69
Create a project – MediatorLib
orafmwschool_mediator_70
Right click on MediatorLib and select New –> Deployment Profile –> JAR File
orafmwschool_mediator_73
Enter mediatorlib as the deployment profile name.
orafmwschool_mediator_74
In the JAR deployment properties dialog, click on Contributors, click on Add button and select apps directory from JDeveloper seed location – <jdeveloper_home>/integration/seed/apps.
orafmwschool_mediator_75
orafmwschool_mediator_76
orafmwschool_mediator_77
orafmwschool_mediator_78
Click on Filters and select the schemas you would like to be deployed.
orafmwschool_mediator_79
Click on OK. This completes creation of JAR file. We now need to create an application deployment profile to install these schemas in SOA Server.
Right click on MediatorMetaData application and select Deploy –> New Deployment Profile. Select “SOA Bundle” as Profile type.
orafmwschool_mediator_80
Enter mediatorlib for Deployment Profile Name. From the properties dialog, open Dependencies and select mediatorlib.
orafmwschool_mediator_82
To deploy MediatorLib to SOA Server, right click on MediatorMetaData and select Deploy –> mediatorlib.
orafmwschool_mediator_83

No comments:

Post a Comment

xslt padding with characters call template for left pad and right pad

  Could a call-template be written that took two parameters ?   a string, and a   number) return the string with empty spaces appended t...