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
  • 1.  pub/sub, synchronous or async

    Posted Sun November 26, 2006 12:54 AM

    I thought I knew how pub/sub worked, but apparently not.

    Given a service pub1 that publishes two instances of Doc1. A trigger subscribes to Doc1, with a target service on sub1. Assume that sub1 takes 5 seconds to run.

    I would expect the two activations of sub1 to take about 5+ seconds of elapsed time. Instead, the actual time is 10+ seconds.

    This tells me that the two instances of Doc1 are run serially, not in parallel. Is that correct?


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


  • 2.  RE: pub/sub, synchronous or async

    Posted Sun November 26, 2006 03:02 AM

    That is the default behavior of a trigger, but you can change it to process concurrently using n threads. Of course, if preserving the publication order is important then it is usually necessary to set the trigger to process serially.

    Mark


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


  • 3.  RE: pub/sub, synchronous or async

    Posted Mon November 27, 2006 12:30 AM

    Thanks Mark. Per your advice I changed the properties of the trigger and got the desired results.

    Thanks for your prompt reply.


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


  • 4.  RE: pub/sub, synchronous or async

    Posted Mon November 27, 2006 02:52 AM

    Details of configuring triggers can be found in the Publish-Subscribe Developer’s Guide Version 6.5 located in the webm_home\Developer\doc\guides folder.

    The section on “Selecting Document Processing” contains the following information about the behavior of the “Concurent” processing mode:

    HTH,

    Mark


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