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.



#Automation


#Applicationintegration
#webMethods
#Integration
 View Only
  • 1.  pub.sync:wait/notify in clustered environment

    Posted 07/21/11 05:46 AM

    Hi,

    We have a requirement to implement a service which must wait for another, independently invoked, service to execute before proceeding. We were looking at the pub.sync:wait and pub.sync:notify services but, if I understand them correctly, they do not work in a clustered environment where the waiting service could be on node 1 and the notifying service on node 2. Is there an equivalent for clustered environments?

    Thanks,

    Allan


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


  • 2.  RE: pub.sync:wait/notify in clustered environment

    Posted 07/21/11 02:23 PM

    Hi Allan

    I´m not sure what you implementation looks like, and I´ve never used the pub.sync:wait/notify services. But (depending on your implementation) maybe you can solve it using a join condition?

    1. Execute Service A
    2. Execute Service B (independently)
    3. When Service A is finished (or when it should wait for service B), publish a doc (docA) and wait (pub.publish:waitForReply)
    4. When Service B is finished, it publishes a document (docB)
    5. A special trigger which joins docA and docB invkoes Service C which does something and published a reply document which service A can listen for.
    6. When Service A gets the reply doc, it continues its invocation.

    Or - if you do not have to return the control to Service A, maybe Service C can continue where Service A stopped.

    Just an idéa - I guess there are numerous ways to solve this.
    Did it get any clearer or did I just mess your mind up even more? :smiley:

    Regards,
    Mikael


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


  • 3.  RE: pub.sync:wait/notify in clustered environment

    Posted 07/25/11 03:41 AM

    We found a way around it. If the notify service returns no services notified we do a remote invoke of a service on the other node in the cluster to try a notify there.


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