Databases Reference
In-Depth Information
Here, schemaLocation is a relative URL that refers to the imported file. In many
scenarios, this is fine. However, if you have several processes, each referring to their
own local copy of the same XML Schema, which is likely to be the case with our
canonical model. Then when you need to change the schema, you will be required
to update every copy.
One way is to just have a master copy of your XML Schema and use build scripts to
update each of the copies every time you create a build. However, this isn't ideal.
A better approach is to have a single copy of the schema that is referenced by
all composites.
Sharing XML Schemas across composites
The SOA infrastructure incorporates a Metadata Service ( MDS ), which allows you
to share common artifacts such as XML Schemas across SOA composites. MDS
supports two types of repository:
File-based repository : This is quicker and easier to set up, so it is typically
used as the design-time MDS by JDeveloper.
Database repository : This is installed as part of the SOA infrastructure.
This is used at runtime, but can also be used by JDeveloper as the MDS at
design-time.
By default, a file-based repository is installed with JDeveloper and sits under the
directory structure:
<JDeveloperHome>/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.
For oBay, we have created the following file structure under apps :
com/rubiconred/obay/xsd/Account_v1_0.xsd
com/rubiconred/obay/xsd/Auction_v1_0.xsd
com/rubiconred/obay/xsd/Base_v1_0.xsd
com/rubiconred/obay/xsd/Common_v1_0.xsd
com/rubiconred/obay/xsd/Item_v1_0.xsd
com/rubiconred/obay/xsd/Listing_v1_0.xsd
com/rubiconred/obay/xsd/Order_v1_0.xsd
com/rubiconred/obay/xsd/User_v1_0.xsd
 
Search WWH ::




Custom Search