Oracle Fusion Middleware (FMW) 11g provides sophisticated error handling capabilities that allow a developer to easily define exception handling at various levels in a composite application. The fault-handling framework uses exception-handling policies describes using XML These exception-handling policies are attached to a composite and are not defined within its code. This allows a developer to reuse policy definitions across multiple components, composites and project.
A project-wide error policy named ExampleProcessingFaults has been defined that specifies actions that should be taken for binding faults, mediator faults, and remote faults.
This document lists the steps that a developer should take to use this project-wide error policy for an existing SOA application.
Procedure
1. Start Oracle JDeveloper and right click the project that you want to modify.
2. Select File / New as shown below:
3. Select XML Document and click the OK button.
4. Enter the name fault-bindings.xml as the file name and press the OK button. This name must be entered exactly as shown.
5. Paste the following code from this document into the fault-bindings.xml file. Note that this code references the ExampleProcessingFaults policy
<?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="ExampleProcessingFaults"/></faultPolicyBindings>
6. Save the project and redeploy it. The new fault policy rules should now be in effect.
- Oracle JDeveloper 11g (11.1.1.3.0)
No comments:
Post a Comment