Fault Management Framework in SOA Suite 12C

Oracle SOA Suite provides an option of Fault Management Framework for handling exception during run time. This framework will catch the exception and will perform user defined action mentioned in the fault policy. Fault Management Framework consists of two xml files a�� fault-policies.xml and fault-bindings.xml. Fault policies like fault conditions, actions or alerts are defined in the fault-policies.xml file. Fault policy needs to be explicitly associated with composite, components, references or services. Fault-bindings.xml file will help on that. Fault binding will link the fault policy to composite or component or service. You can perform following actions in the fault management framework a��

  • Abort the entire application flow
  • Human Intervention enables you to involve Human to handle the fault
  • Execute a java class to do some action on exception
  • Rethrow the fault to BPEL fault handler
  • Raise replay fault
  • Retry the activity
  • Handle rejected message by calling web service
  • Enqueue a error message in a queue
  • Store error message in a file also

Here we will create a fault policy and will attach to the component.

  1. Right click on the project -> From New Gallery -> SOA Tier -> Faults -> Fault Policy Document to create fault-policies.xml Click on OK button.Fault_Management_Framework_1
  2. Editor window will open (fault-policies.xml file). Select remoteFault as fault name and default action will be rethrowFault like below screenshotsFault_Management_Framework_2 Fault_Management_Framework_3
  3. We can create one alert for this fault and alert will be sent to JMS queue. Click on green plus sign in the Alert tab and select JMS in the drop down list.Fault_Management_Framework_4
  4. JMS property window will appear. Enter a property id and create property set. In property set browse JMS Destination and Connection Factory.Fault_Management_Framework_5
  5. Add this alert to actionFault_Management_Framework_6
  6. You can check the source code of fault-policyFault_Management_Framework_7
  7. Now the fault-policies.xml file will look like below screenshotFault_Management_Framework_8
  8. Attach that fault policy file to composite. Go to composite window and click on Edit Composite fault policiesA�iconFault_Management_Framework_9
  9. Select fault policy file and fault binding file and attach fault policy at different levelFault_Management_Framework_10
  10. Click on OK button and save the application

Fault Management Framework hasA�priority than BPEL fault handler.

Leave a Reply

Your email address will not be published. Required fields are marked *

Show my latest post here