Fault Bindings

Fault bindings associate fault policies with composites or components, and are defined in the fault-bindings.xml file. Create the fault-bindings.xml file based on the XML schema defined in Schema Definition File for fault-bindings.xml .

Fault policies can be created at the following levels:

  • Composite: You can define one fault policy for all Mediator components in a composite. You can specify this level in the following way:

    <composite faultPolicy="ConnectionFaults"/>
    
  • Component: You can define a fault policy exclusively for a Mediator service component. A component-level fault policy overrides the composite-level fault policy. You can specify this level as shown in the following example:

    <component faultPolicy="ConnectionFaults">
            <name>Component1</name>
            <name>Component2</name>
    </component>
    
  • Reference: You can define a fault policy for the references of a Mediator component. You can specify this level as shown in the following example:

    <reference faultPolicy="policy1">
        <name>DBAdapter3</name>
      </reference>
    

Note:

The level of precedence for fault policies is Reference -> Component -> Composite.

Note:

Human intervention is the default action for errors that do not have a fault policy defined.

A sample fault binding file is shown in the following example:

<?xml version="1.0" encoding="UTF-8"?>
<faultPolicyBindings version="2.0.1"
 xmlns="http://schemas.oracle.com/bpel/faultpolicy"
 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <composite faultPolicy="ConnectionFaults"/>
</faultPolicyBindings>