How to Implement Retry Mechanism using throwExceptionForRetry service in trigger and

Hi All,

Please any one reply me with steps how to Retry Mechanism using throwExceptionForRetry service in trigger and trigger service.

Please explain me briefly development steps and property values for trigger and trigger services.

Thanks and Regards,
Anil Kumar Ellendula

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…


Anil - have you looked at the documentation before posting on here? It’s the best place to look (documentation is pretty good with SoftwareAG)

In the *_Publish_Subscribe_Developers_Guide.pdf is where you’ll find most information relating to pub/sub mechanism… In particular the section called “Configuring Transient Error Handling”.

In the *_Integration_Server_Built-In_Services_Reference.pdf there’s information on the built in services you should use (throwExceptionForRetry and getRetryCount) as per amol’s post.

Nathan Lee