Creating a file-based MDS repository for JDeveloper

Before we can reference this with JDeveloper, we need to define a connection to the file-based MDS.

Getting ready

By default, a file-based repository is installed with JDeveloper and sits under the directory structure:

<JDeveloper Home>/jdeveloper/integration/seed

This already contains the subdirectory soa, which is reserved for, and contains, artifacts used by the SOA infrastructure.

For artifacts that we wish to share across our applications in JDeveloper, we should create the subdirectory apps (under the seed directory); this is critical, as when we deploy the artifacts to the SOA infrastructure, they will be placed in the apps namespace.

We need to ensure that the content of the apps directory always contains the latest version of our XML library; as these are stored under Subversion, we simply need to check out the right portion of the Subversion project structure.

How to do it...

  1. First, we need to create and populate our file-based repository. Navigate to the seed directory, and right-click and select SVN Checkout..., this will launch the Subversion Checkout window.
    • For URL of repository, ensure that you specify the path to the apps subdirectory.
    • For Checkout directory, specify the full pathname of the seed directory and append /apps at the end. Leave the other default values, as shown in the following screenshot, and then click on OK:
    How to do it...

    Subversion will check out a working copy of the apps subfolder within Subversion into the seed directory.

  2. Before we can reference our XML library with JDeveloper, we need to define a connection to the file-based MDS.

    Within JDeveloper, from the File menu select New to launch the Gallery, and under Categories select General | Connections | SOA-MDS Connection from the Items list.

    This will launch the MDS Connection Wizard.

  3. Enter File Based MDS for Connection Name and select a Connection Type of File Based MDS.

    We then need to specify the MDS root folder on our local filesystem; this will be the directory that contains the apps directory, namely:

    <JDeveloper Home>jdeveloperintegrationseed
    How to do it...

    Click on Test Connection; the Status box should be updated to Success!. Click on OK. This will create a file-based MDS connection in JDeveloper.

  4. Browse the File Based MDS connection in JDeveloper.

    Within JDeveloper, open the Resource Palette and expand SOA-MDS. This should contain the File Based MDS connection that we just created.

  5. Expand all the nodes down to the xsd directory, as shown in the following screenshot:
    How to do it...

    If you double-click on one of the schema files, it will open in JDeveloper (in read-only mode).

There's more...

Once the apps directory has been checked out, it will contain a snapshot of the MDS artifacts at the point in time that you created the checkpoint. Over time, the artifacts in MDS will be modified or new ones will be created. It is important that you ensure that your local version of MDS is updated with the current version.

To do this, navigate to the seed directory, right-click on apps, and select SVN Update.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.191.176.228