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

Complex Repeating Tasks Repeat from end of invocation

  • 1.  Complex Repeating Tasks Repeat from end of invocation

    Posted Thu February 03, 2005 03:26 PM

    Is there any why to set a Complex Repeating Task to only Repeat from end of invocation, like the Repeating Tasks With a Simple Interval. The problem is that the Complex Repeating Task kicks of the same service multiple times which is causing problems.

    Thanks


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


  • 2.  RE: Complex Repeating Tasks Repeat from end of invocation

    Posted Tue March 01, 2005 12:55 PM

    I have not found a way to do what you want, only workarounds to prevent multiple instances of the same service:

    1. You can set a lock within your flow which is removed at the end of the flow (or in case of an error).
    2. You can use “wm.server.query:getServiceStats” at the beginning of your flow to check if an instance is already running and exit in this case.

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


  • 3.  RE: Complex Repeating Tasks Repeat from end of invocation

    Posted Tue March 01, 2005 02:48 PM

    I am working with webMethods regarding an issue similar to this. They suggested using a java service that had a synchronized variable. Synchronized variables can be locked, so the first instance of a service will lock the variable, and then subsequent instances will detect the lock, until it is released. I’m not sure how this would work in a clustered environment.

    HTH

    • Mike

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