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

Building Services that Retry

  • 1.  Building Services that Retry

    Posted Tue January 01, 2013 08:19 AM

    Hello,
    We are working on building code/framework that can be used to automatically retry on failure and suspend trigger in case on permanent failures. Can anyboby suggest few logic which they have been already implementing in their projects.

    Thanks in advance…


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


  • 2.  RE: Building Services that Retry

    Posted Tue January 01, 2013 02:44 PM

    Hello,

    1. What kind of trigger processing you have set? Serial Or Parallel

    2. What do u understand by permanent failure? Whether permanent failure throws ISRuntimeException or ServiceException?

    Only failures with transient exception can be retried.

    Cheers,
    Sasanka


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


  • 3.  RE: Building Services that Retry

    Posted Wed January 02, 2013 08:44 AM

    Hello Sasanka,

    What logic can be implemented to determine whether the last error is a Transient error?

    Thanks,

    Anupam


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


  • 4.  RE: Building Services that Retry

    Posted Wed January 02, 2013 09:14 AM

    Hello Anupam,

    The service can be found in PSUtilities package.

    Cheers,
    Sasanka


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


  • 5.  RE: Building Services that Retry

    Posted Wed January 02, 2013 05:38 PM

    The meanings of “transient error” and “permanent error” are entirely up to you. In your code you need to examine the specific error code and/or message and decide whether or not to throw an error for retry or a service error.

    To suspend a trigger, simply configure the trigger to suspend when an error is thrown.

    Be careful about using PSUtilities services without fully understanding what they do.


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


  • 6.  RE: Building Services that Retry

    Posted Thu January 03, 2013 07:42 PM

    I am working on it now… Your views really helped.

    Thanks a lot Reamon and Sasanka …:slight_smile:


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


  • 7.  RE: Building Services that Retry

    Posted Fri January 11, 2013 07:34 AM

    Hello Sasanka/Reamon,

    I am not able to find this PSUtilities package/code .

    Can u please tell where I’ll get this package or from where it can be downloaded?

    Thanks in advance,
    Anupam


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


  • 8.  RE: Building Services that Retry

    Posted Fri January 11, 2013 09:40 AM

    U can d/n the PSUtilities Package from the below link.
    [URL]http://techcommunity.softwareag.com/ecosystem/communities/codesamples/webmethods/suite/SAMPLE-20120912092616517.html[/URL]

    Its custom services, so be careful with them.

    Hope it helps U


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


  • 9.  RE: Building Services that Retry

    Posted Fri January 11, 2013 10:21 AM

    Thanks Kaizen (A.B.)…:slight_smile:


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


  • 10.  RE: Building Services that Retry

    Posted Fri January 11, 2013 02:40 PM

    Hello All,

    I have a requirement where I have to create a log file when the trigger service is retrying on transient error. I have set the retry property in the trigger property panel. The log file needs to log the message each time the service is retrying. After the max retry count is reached and the trigger gets disabled I need to log that message that the trigger got disabled as well. Finally when the resource monitoring service gets called to check when the resource is available I need to log the message that the trigger along with the trigger name got enabled. Can someone help me with this? Is there a way to get the trigger name which is calling the resource monitoring service?

    Thanks in advance
    Anupam


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


  • 11.  RE: Building Services that Retry

    Posted Fri January 11, 2013 02:55 PM

    Hello Sasanka,

    Can u please tell me the service name from PSUtilities package from which I can take some help?


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