SOA Suite 11g - faulthandling

I have updated my sample on faulthandling to show fault-policy usage and how to work with the standard runtime fault - all based on SOA Suite 11g.

A few things to note:
a) I had to advertise fault-bindings / fault-policies.xml explicitly in composte.xml via


<property name="oracle.composite.faultPolicyFile">fault-policies.xml</property>
<property name="oracle.composite.faultBindingFile">fault-bindings.xml</property>

b) My policy is bound to the MasterCatchRemoteFault process, this is configured in fault-bindings.xml through

<!-- only applies for the MasterCatchRemoteFault process -->
<component faultPolicy="bpel-106-FaultHandling-faultpolicy">
<name>MasterCatchRemoteFault</name>
</component>

c) The faultPolicy name matches to the id defined in fault-policies.xml. In there I am reacting to a fault that is thrown out of the detail process.

<Conditions>
<faultName xmlns:custom="http://example.com/bpel_106_FaultHandling/DetailRemoteFaultThrowingProcess"
name="custom:aCustomBusinessFault">
<condition>
<-- rethrow the fault -->
<action ref="ora-rethrow-fault"/>
</condition>
</faultName>
</Conditions>

The full sample can be found here.

Comments:

Hi clemens, in de documentation of 11g the caption is mentioning a fault-buildings.xml i think this is a small error in the doc but it confused me what the name i should use for configuring fault handling. link to documention chapter: http://download.oracle.com/docs/cd/E12839_01/integration.1111/e10224/bp_faults.htm#CIHDCFBH

Posted by Theo van Arem on December 13, 2009 at 03:36 PM PST #

oops - that's certainly a bug - the good news is that you can refer to the fault policy file now from the composite - and hence it's not too bad, but still a bug :)

Posted by clemens.utschig on December 13, 2009 at 10:16 PM PST #

Hi Clemens, Thanks for the blog post and sample above. I have a thought surrounding fault-policies that I was wondering if I keep seek your valuable insight. Whilst looking a fault policies for 11g, I see a need on projects to have different fault policies applied to different components within a composite. A simple example would be to apply one policy to a mediator component and a different one to a bpel component (or just different BPEL components be treated differently) From the 11g Developers guide (link above) it implies you can specify different polices per components by specfying this accordingly within the fault-bindings.xml. I have tried using import statements like above in the composite.xml file as follows: oramds:/apps/fault-policies/fault-policies-sync.xml oramds:/apps/fault-policies/fault-policies-mediator.xml fault-bindings.xml However when using this it seems that the second policy import overrides the first. Hence the above requirement does not seem possible. Is this feasible to achieve within 11g? Thanks for your Time David

Posted by David Gaskell on January 14, 2010 at 06:21 PM PST #

Post a Comment:
  • HTML Syntax: NOT allowed
About

Tips and tricks straight from the SOA / BPM development team at Oracle HQ

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today