Rather than creating the fault-policies.xml
and fault-binding.xml
files in your composite project, which then get deployed with the composite into the runtime environment, you can actually reference the fault policies deployed to MDS.
Make sure you have created a file-based MDS repository for JDeveloper, as described at the start of this chapter, and that it contains valid fault-policies.xml
and fault-binding.xml
files.
Then, open the SOA project in which you want to reference the external fault policy.
oracle.composite.faultPolicyFile
and oracle.composite.faultBindingFile
to the composite.xml
file.service
elements and reference the location of your policy and binding files in MDS, as shown in the following code screenshot:By default, at runtime the SOA infrastructure will look in the same directory, as composite.xml
for the fault-policies.xml
and fault-binding.xml
files.
Specifying these properties overrides this default behavior, causing the SOA infrastructure to reference the specified location within MDS.