Recently faced a issue where the retry in fault policy was not working for few composites. I verified the fault polices in both composites and all look same.
<Action id="ora-retry">
<retry>
<retryCount>3</retryCount>
<retryInterval>10</retryInterval>
<retryFailureAction ref="ora-rethrow-fault"/>
<exponentialBackoff/>
</retry>
</Action>
Then i realized something to do with Composite.xml. Adding the below property in component is making it work.
<component name="ABC">
<implementation.bpel src="ABC.bpel"/>
<property name="bpel.config.transaction">requiresNew</property>
<property name="bpel.config.oneWayDeliveryPolicy">sync</property>
</component>
Note: While creating the Synchronous bpel composite's by default it will be"Required".
<Action id="ora-retry">
<retry>
<retryCount>3</retryCount>
<retryInterval>10</retryInterval>
<retryFailureAction ref="ora-rethrow-fault"/>
<exponentialBackoff/>
</retry>
</Action>
Then i realized something to do with Composite.xml. Adding the below property in component is making it work.
<component name="ABC">
<implementation.bpel src="ABC.bpel"/>
<property name="bpel.config.transaction">requiresNew</property>
<property name="bpel.config.oneWayDeliveryPolicy">sync</property>
</component>
Note: While creating the Synchronous bpel composite's by default it will be"Required".
No comments:
Post a Comment