ActiveVOS Server User’s Guide
This policy describes when and how many times to retry an invoked service that does not reply.
During process execution, an invoked service may not reply, and you can specify how you want to handle the faulting execution.
You may specify the relatively simple policy that the server automatically retries the invocation a certain number of times.
Alternately, you can create a BPEL process to handle retries. For details, see Retry-Policy Service.
Retry attributes include:
|
Assertion parameter |
Description |
Default |
|---|---|---|
|
attempts |
Number of times to retry the service |
None. You must add a value. Ignored if a service name is specified. |
|
interval |
Amount of time in seconds to wait between retries |
None. You must add a value. Ignored if a service name is specified. |
|
service |
Name of a service implemented by the process. The service is a BPEL process based on a required WSDL operation. |
If you specify a service, the attempts and interval values are ignored. |
|
faultList |
Faults to include for retries |
All faults are retried |
|
faultExclusionList |
Faults to exclude for retries |
|
|
On Failure |
The state for an invoke activity when the retries are exhausted: Faulting (the default) or Suspended. |
Fault |
XML Syntax
<abp:retryPolicy attempts="xsd:int"? interval="xsd:int"?
service="NCName"? faultList="QNameList"?
faultExclusionList="QNameList"? />
Examples
Policy with a service and fault list
<wsa:EndpointReference
xmlns:s="http://www.activebpel.org/services/retrytests">
<wsa:ServiceName PortName=”retrytesterServicePort”>
s:retryTesterService</wsa:ServiceName>
<wsa:Metadata>
<wsp:Policy
xmlns:wsp=”http://schemas.xmlsoap.org/ws/2004/09/policy”
xmlns:abp=”http://schemas.active-endpoints.com/ws/
2005/12/policy”>
<abp:retry service=”retryCheckerService>
faultList="{http://xml.apache.org/axis/}*
{http://www.active-endpoints.com/2004/06/bpel
/extensions/}*
{http://www.activebpel.org/services
/retrytests}*"/>
</wsp:Policy>
</wsa:Metadata>
</wsa:EndpointReference>
Policy with attempts and fault exclusion list
<wsa:EndpointReference
xmlns:s="http://www.activebpel.org/services/retrytests">
<wsa:ServiceName PortName=”retrytesterServicePort”>
s:retryTesterService</wsa:ServiceName>
<wsa:Metadata>
<wsp:Policy
xmlns:wsp=”http://schemas.xmlsoap.org/ws/2004/09/policy”
xmlns:abp=”http://schemas.active-endpoints.com/ws/
2005/12/policy”>
<abp:retry interval=”1” attempts=”3”>
faultExclusionList="{http://xml.apache.org/axis/}*"/>
</wsp:Policy>
</wsa:Metadata>
</wsa:EndpointReference>
Copyright (c) 2004-2008 Active Endpoints, Inc.