9 Replies Latest reply: Jul 6, 2012 9:44 AM by user3554982 RSS

    fault policy not working

    user3554982
      Hi,

      I have designed an Composite which has a BPEL which in turns calls Primavera WS.

      I have also designed the fault policy for the same.

      When i place the fault-bindings.xml and fault-policies.xml in the composite folder it works fine.

      But when i place these files to a location onto the server and specify the location in composite.xml..fault policy does not work.

      Below are my policy files.

      1. fault-bindings.xml

      <?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="GETSDefaultPolicy"/>
      </faultPolicyBindings>


      2. fault-policies.xml

      <?xml version="1.0" encoding="UTF-8"?>
      <faultPolicies xmlns="http://schemas.oracle.com/bpel/faultpolicy">
      <faultPolicy version="2.0.1" id="GETSDefaultPolicy"
      xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"
      xmlns:xs="http://www.w3.org/2001/XMLSchema"
      xmlns="http://schemas.oracle.com/bpel/faultpolicy"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
      <Conditions>
      <faultName xmlns:bpelx="http://schemas.oracle.com/bpel/extension"
      name="bpelx:remoteFault">
      <condition>
      <action ref="ora-retry"/>
      </condition>
      </faultName>
      </Conditions>
      <Actions>
      <!-- This is an action will mark the work item to be "pending recovery from console"-->
      <Action id="ora-retry">
      <retry>
      <retryCount>5</retryCount>
      <retryInterval>2</retryInterval>
      <exponentialBackoff/>
      <retryFailureAction ref="ora-rethrow-fault"/>
      </retry>
      </Action>
      <Action id="ora-rethrow-fault"><rethrowFault/></Action>

      </Actions>
      </faultPolicy>
      </faultPolicies>


      3. composite.xml entry

      <property name="oracle.composite.faultPolicyFile">file:/appl/dev/soa/domains/corp/managedserver/corporatedev/servers/soa_service1/policies/fault-policies.xml</property>
      <property name="oracle.composite.faultBindingFile">file:/appl/dev/soa/domains/corp/managedserver/corporatedev/servers/soa_service1/policies/fault-bindings.xml</property>


      Any help on the above is appreciated.