<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>MDS on DecipherMiddleware</title><link>https://blog.deciphermiddleware.in/tags/mds/</link><description>Recent content in MDS on DecipherMiddleware</description><generator>Hugo -- gohugo.io</generator><language>en-us</language><lastBuildDate>Tue, 22 Dec 2020 13:51:00 +0000</lastBuildDate><atom:link href="https://blog.deciphermiddleware.in/tags/mds/index.xml" rel="self" type="application/rss+xml"/><item><title>Import and Export MDS artifacts in SOA 12c</title><link>https://blog.deciphermiddleware.in/posts/import-and-export-mds-artifacts-in-soa/</link><pubDate>Tue, 22 Dec 2020 13:51:00 +0000</pubDate><guid>https://blog.deciphermiddleware.in/posts/import-and-export-mds-artifacts-in-soa/</guid><description>&lt;p&gt;Oracle SOA-MDS (Metadata Store) repository can be used to access artifacts that can be shared among various SOA composites. For example, we have one common schema for a business fault that is consumed by various applications. Instead of having a localized copy of that schema file in each SOA composite, we can have it in a centralized repository (SOA-MDS). Another benefit of using SOA-MDS is that we can change the file at runtime and need not redeploy the complete code.&lt;/p&gt;
&lt;p&gt;While developing SOA composites, we use SOA design-time repository, later these changes can be synced to the SOA servers. In this article, we will discuss 2 ways to sync the artifacts available in the SOA design-time repository and the SOA servers.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;a href="#1-establishing-the-connection-to-soa-mds-in-jdeveloper"&gt;Establishing the connection to SOA-MDS in Jdeveloper.&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#2-using-soa-em-console-or-fusion-middleware-control-console"&gt;Using SOA em console or Fusion Middleware control console.&lt;/a&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;h2 id="moving-a-file-between-soa-composite-to-soa-design-time-mds-repository"&gt;Moving a file between SOA composite to SOA design-time MDS repository &lt;a href="#moving-a-file-between-soa-composite-to-soa-design-time-mds-repository" class="anchor"&gt;🔗&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;Let&amp;rsquo;s assume, we created a &lt;strong&gt;businessFault.xsd&lt;/strong&gt; which will be used by various SOA composites or projects.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://blog.deciphermiddleware.in/images/blogger/6dcc9a6563.png"&gt;&lt;img src="https://blog.deciphermiddleware.in/images/blogger/6dcc9a6563.png" alt=""&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Before moving this file to the SOA server MDS location, we need to first push it to the SOA design-time repository.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;To do so, right-click on &lt;strong&gt;businessFault.xsd&lt;/strong&gt; and click on &lt;strong&gt;Share using SOA Design-Time MDS Repository&lt;/strong&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;a href="https://blog.deciphermiddleware.in/images/blogger/4f0bafb1e3.png"&gt;&lt;img src="https://blog.deciphermiddleware.in/images/blogger/4f0bafb1e3.png" alt=""&gt;&lt;/a&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Make sure, that file is not opened in Jdeveloper else you will get the below error.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;a href="https://blog.deciphermiddleware.in/images/blogger/5c97fbd7f6.png"&gt;&lt;img src="https://blog.deciphermiddleware.in/images/blogger/5c97fbd7f6.png" alt=""&gt;&lt;/a&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;A wizard will open as below. Click next to proceed.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;a href="https://blog.deciphermiddleware.in/images/blogger/1f0d7d52d5.png"&gt;&lt;img src="https://blog.deciphermiddleware.in/images/blogger/1f0d7d52d5.png" alt=""&gt;&lt;/a&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Select the folder in which you want to place the file. For e.g. &amp;lsquo;/apps/Common&amp;rsquo;. Click Next.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;a href="https://blog.deciphermiddleware.in/images/blogger/98dde21089.png"&gt;&lt;img src="https://blog.deciphermiddleware.in/images/blogger/98dde21089.png" alt=""&gt;&lt;/a&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;If the document exists with the same name and we want to overwrite, then check the &lt;strong&gt;Overwrite if document exists in the target MDS repository&lt;/strong&gt;. Click Next&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;a href="https://blog.deciphermiddleware.in/images/blogger/722acc7277.png"&gt;&lt;img src="https://blog.deciphermiddleware.in/images/blogger/722acc7277.png" alt=""&gt;&lt;/a&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;If there are any references for the document, then those will be displayed along with updates that will happen. In this scenario, the file is not being used currently and the list is empty. Review the changes and click on Finish.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;a href="https://blog.deciphermiddleware.in/images/blogger/6e08cf9fbb.png"&gt;&lt;img src="https://blog.deciphermiddleware.in/images/blogger/6e08cf9fbb.png" alt=""&gt;&lt;/a&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;We will get a success message.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;a href="https://blog.deciphermiddleware.in/images/blogger/10c087b83a.png"&gt;&lt;img src="https://blog.deciphermiddleware.in/images/blogger/10c087b83a.png" alt=""&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://blog.deciphermiddleware.in/images/blogger/4f81fcca2c.png"&gt;&lt;img src="https://blog.deciphermiddleware.in/images/blogger/4f81fcca2c.png" alt=""&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h2 id="1-establishing-the-connection-to-soa-mds-in-jdeveloper"&gt;1. Establishing the connection to SOA-MDS in Jdeveloper. &lt;a href="#1-establishing-the-connection-to-soa-mds-in-jdeveloper" class="anchor"&gt;🔗&lt;/a&gt;&lt;/h2&gt;&lt;ul&gt;
&lt;li&gt;Click on File. Click on New. Under all items select SOA-MDS connection. Click Ok&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;a href="https://blog.deciphermiddleware.in/images/blogger/b881d098b8.png"&gt;&lt;img src="https://blog.deciphermiddleware.in/images/blogger/b881d098b8.png" alt=""&gt;&lt;/a&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Specify the Connection Name (MDSConnection1). Select the type of connection to MDS, either File-based or DB based.&lt;/li&gt;
&lt;li&gt;In this example, we will be using File Based MDS. Specify the path to the MDS File location and click on OK.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;a href="https://blog.deciphermiddleware.in/images/blogger/80ad18da71.png"&gt;&lt;img src="https://blog.deciphermiddleware.in/images/blogger/80ad18da71.png" alt=""&gt;&lt;/a&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;If you want to configure DB based MDS, then you need to either have the MDS DB connection or create a new DB connection to SOA-MDS.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;a href="https://blog.deciphermiddleware.in/images/blogger/1eab201e75.png"&gt;&lt;img src="https://blog.deciphermiddleware.in/images/blogger/1eab201e75.png" alt=""&gt;&lt;/a&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Now the New MDS connection will be created and can be viewed under the resources palette.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;a href="https://blog.deciphermiddleware.in/images/blogger/bb4bcc49c5.png"&gt;&lt;img src="https://blog.deciphermiddleware.in/images/blogger/bb4bcc49c5.png" alt=""&gt;&lt;/a&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Right-click on the SOA_DesignTimeRepository and then select transfer.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;a href="https://blog.deciphermiddleware.in/images/blogger/b31321c2bf.png"&gt;&lt;img src="https://blog.deciphermiddleware.in/images/blogger/b31321c2bf.png" alt=""&gt;&lt;/a&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Select the files which you want to transfer and specify the target MDS connection. Click on transfer.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;a href="https://blog.deciphermiddleware.in/images/blogger/784aa1b240.png"&gt;&lt;img src="https://blog.deciphermiddleware.in/images/blogger/784aa1b240.png" alt=""&gt;&lt;/a&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;The file will be copied to the target MDS location i.e. SOA-MDS location. The file will be on the SOA server.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;a href="https://blog.deciphermiddleware.in/images/blogger/c828657250.png"&gt;&lt;img src="https://blog.deciphermiddleware.in/images/blogger/c828657250.png" alt=""&gt;&lt;/a&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Similarly, to transfer files from SOA server MDS repository to SOA_DesignTimeRepository. Right-click MDSConnection1 and select transfer. Specify the files and click transfer. Here in this case target Connection will be SOA_DesignTimeRepository.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;a href="https://blog.deciphermiddleware.in/images/blogger/736bdf51bb.png"&gt;&lt;img src="https://blog.deciphermiddleware.in/images/blogger/736bdf51bb.png" alt=""&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h2 id="2-using-soa-em-console-or-fusion-middleware-control-console"&gt;2. Using SOA em console or Fusion Middleware control console. &lt;a href="#2-using-soa-em-console-or-fusion-middleware-control-console" class="anchor"&gt;🔗&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;We can download the complete MDS repository in the .jar/.zip file and import it into our Jdeveloper and vice versa.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;To Download or upload MDS repository .jar/.zip file from em console, Login to em console using the URL http://HOST[: PORT]/em. Click on Target Navigation and click on soa-infra.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;a href="https://blog.deciphermiddleware.in/images/blogger/ace2c512fc.png"&gt;&lt;img src="https://blog.deciphermiddleware.in/images/blogger/ace2c512fc.png" alt=""&gt;&lt;/a&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Click on SOA Infrastructure. A Dropdown menu will appear. Click on Administration and then click on MDS Configuration&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;a href="https://blog.deciphermiddleware.in/images/blogger/7bb616dce5.png"&gt;&lt;img src="https://blog.deciphermiddleware.in/images/blogger/7bb616dce5.png" alt=""&gt;&lt;/a&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;On this page, we can import or export the MDS repository in the .jar file. To export click on export. A zip file with the name &amp;ldquo;soa-infra_metadata.zip&amp;rdquo; will be downloaded. Similarly, to import the jar or zip file click on import.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;a href="https://blog.deciphermiddleware.in/images/blogger/8e9fb6b777.png"&gt;&lt;img src="https://blog.deciphermiddleware.in/images/blogger/8e9fb6b777.png" alt=""&gt;&lt;/a&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;To import this file in Jdeveloper, right-click on SOA_DesignTimeRepository and click on import from Jar. In case you want to export the file click on Export the Jar and specify the file name.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;a href="https://blog.deciphermiddleware.in/images/blogger/aeb990c70b.png"&gt;&lt;img src="https://blog.deciphermiddleware.in/images/blogger/aeb990c70b.png" alt=""&gt;&lt;/a&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Specify the location of the .jar/zip file containing MDS files. Click on import.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;a href="https://blog.deciphermiddleware.in/images/blogger/471c93a6f2.png"&gt;&lt;img src="https://blog.deciphermiddleware.in/images/blogger/471c93a6f2.png" alt=""&gt;&lt;/a&gt;&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; It is always better to use the &lt;a href="#1-establishing-the-connection-to-soa-mds-in-jdeveloper"&gt;first&lt;/a&gt; approach in case files and composites are deployed more on the server.&lt;/p&gt;
&lt;/blockquote&gt;</description></item></channel></rss>