Hi Anil,
Below is the way I implemented the throwExceptionForRetry1) In trigger set Max retry attempts(n) and Retry interval(m).Service will be retried n number of times each waiting for m seconds.
2)In our main service we have to set the logic in the Catch block using two services.
a)pub.flow:getRetryCount (to get the retry count at runtime)
b)pub.flow:throwExceptionForRetry(will retrigger data from the Broker when the set exception occurs)
Everytime service fails the “lastError/error” is checked for the error we want to retry (try using pattern matching).
We will check for the retry count (getRetryCount) if it exceeded the max value(use sequence).
if retryCount <=maxRetryCount then call service throwExceptionForRetry.
Please use a flag to jump to conditions…
Thanks,
Amol
#Integration-Server-and-ESB#Flow-and-Java-services#webMethods