IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
Expand all | Collapse all

How to Implement Retry Mechanism using throwExceptionForRetry service in trigger and

  • 1.  How to Implement Retry Mechanism using throwExceptionForRetry service in trigger and

    Posted Thu March 01, 2012 09:44 AM

    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


    #webMethods
    #Integration-Server-and-ESB
    #Flow-and-Java-services


  • 2.  RE: How to Implement Retry Mechanism using throwExceptionForRetry service in trigger and

    Posted Thu March 01, 2012 11:38 AM

    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


  • 3.  RE: How to Implement Retry Mechanism using throwExceptionForRetry service in trigger and

    Posted Tue March 13, 2012 03:18 AM

    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.

    regards,
    Nathan Lee


    #Integration-Server-and-ESB
    #Flow-and-Java-services
    #webMethods