webMethods

webMethods

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
  • 1.  Save pipeline when trigger retries exceeded?

    Posted Thu May 28, 2009 11:13 AM

    Hi.

    I have a service that’s called by a trigger, which throws an exception for retry if there’s a problem connecting to our database. The trigger will retry for the configured number of attempts.

    What I’d like is, after the final attempt, for the pipeline to get written somewhere so that an admin can manually resubmit it.

    Any advice on how to achieve this?

    Thanks.


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


  • 2.  RE: Save pipeline when trigger retries exceeded?

    Posted Thu May 28, 2009 12:25 PM

    Hi,

    on error, just invoke another service to alert the admin.

    regards,
    srinivas.


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


  • 3.  RE: Save pipeline when trigger retries exceeded?

    Posted Thu May 28, 2009 01:01 PM

    But I only want to do it after the last retry.

    Can the service invoked by the trigger know that it won’t be retried?


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


  • 4.  RE: Save pipeline when trigger retries exceeded?

    Posted Thu May 28, 2009 01:11 PM

    Hi,

    You can use monitor to resubmit the failed service.


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


  • 5.  RE: Save pipeline when trigger retries exceeded?

    Posted Thu May 28, 2009 01:40 PM

    Thanks - that is something I will investigate. My client currently does not have Monitor installed, and they’re logging to the filesystem rather than the DB.

    I’d welcome suggestions for what to do if they’re unwilling to install Monitor.


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


  • 6.  RE: Save pipeline when trigger retries exceeded?

    Posted Fri May 29, 2009 05:34 AM

    Other way is instead of performing database operation in trigger service itself, create another service called processTriggerService which does all your database operations. Code your trigger service to map incoming document to a temporary canonical and route this temporary canonical to trading network.

    TN processsing rule for this routed document will invoke processTriggerService service. This way you can maintain and track the status of the trigger retry and reprocess the document in case something goes for toss.

    Jiten


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


  • 7.  RE: Save pipeline when trigger retries exceeded?

    Posted Fri May 29, 2009 08:54 AM

    You can use pub.flow:getRetryCount service to find out retryCount and maxRetryCount which can be used to identify the last retry attempt using %retryCount% = %maxRetryCount% condition. When this condition met, you can do savePipeline or required functionality to store transactional data for furhter resubmit.


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