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.


#TechXchangePresenter
 View Only
  • 1.  Using the Publish and Wait

    Posted Mon September 16, 2002 03:07 PM

    I’m building an Integration that is Publishing a Document (Input)and Waiting for a Reply(Output). My second Integration uses the Input performs a process and Publishes the Output Document. But the initial Integration is not receiving the Output Document. In my Publish and wait step I have coded in the Properties both the Publish Document and the Reply Document Id’s. I can see my see second Integration working correcly including the Publish Output but the original Integration is not picking it up.

    Thanks for any assistance you may provide!!


    #webMethods
    #Universal-Messaging-Broker
    #broker
    #Integration-Server-and-ESB


  • 2.  RE: Using the Publish and Wait

    Posted Mon September 16, 2002 03:50 PM

    Hi Tony,

    You need to deliver the reply. This will require using an output step instead of a publish step - the output step will deliver the document when the script finishes.

    Hope this helps,
    Tara


    #Universal-Messaging-Broker
    #broker
    #Integration-Server-and-ESB
    #webMethods


  • 3.  RE: Using the Publish and Wait

    Posted Mon September 16, 2002 03:54 PM

    in the second integration, make sure the properties of the output is set to delivery.


    #broker
    #Integration-Server-and-ESB
    #webMethods
    #Universal-Messaging-Broker


  • 4.  RE: Using the Publish and Wait

    Posted Tue September 17, 2002 08:34 PM

    Are the two Integrations on the same adapter. If it is, then you have problem. Because the default of adapter setting is one thread, and calling publishRequestAndWait will be blocking and the second Integration doesn’t have change to process it. To make it works, you have to set adapter in multi processes or multi threads (your choice).

    Hope it helps,
    Dylan


    #broker
    #webMethods
    #Universal-Messaging-Broker
    #Integration-Server-and-ESB


  • 5.  RE: Using the Publish and Wait

    Posted Tue May 29, 2007 03:34 PM

    Hello,

    I have a similar kind of requirement where in i need to call three systems in parallel and aggregate the response in the main calling service. I do not like to call the three systems in sequence in order to avoid the time lag.I do not like to use modeler, is there any other way, like multi threading calls to different systems from the same service.

    Thanks,
    KK.


    #webMethods
    #Universal-Messaging-Broker
    #Integration-Server-and-ESB
    #broker


  • 6.  RE: Using the Publish and Wait

    Posted Tue May 29, 2007 05:34 PM

    Read the Publish-Subscribe Developer’s Guide for information about asynchronous request/reply.

    Before doing so, I would suggest finding out if calling each system in turn actually incurs a meaningful “time lag”. Calling each in turn would result in an easier-to-understand-and-maintain service. Introducing multi-threading MIGHT be faster but it is definitely more complex. My suggestion is to not introduct the complexity until you know that it is faster and that the speed increase is meaningful.

    For example, if publishing the 3 requests and gathering the 3 replies in a multi-threaded manner saves 90 seconds of execution time, does anyone notice or care? If not, then saving that 90 seconds is useless.

    Just my opinion.


    #Universal-Messaging-Broker
    #Integration-Server-and-ESB
    #broker
    #webMethods


  • 7.  RE: Using the Publish and Wait

    Posted Wed May 30, 2007 10:28 AM

    Hi Rob,

    Thanks much for the response. In my case i have SLA of 3 seconds to meet in the project. So i feel the multi threading way is most appropriate to achieve the SLA. DO you have any sample java code which implement that multi threading calls.

    TIA
    KK


    #Universal-Messaging-Broker
    #Integration-Server-and-ESB
    #webMethods
    #broker


  • 8.  RE: Using the Publish and Wait

    Posted Wed May 30, 2007 04:28 PM

    My point was to not make assumptions about which approach is faster. Multi-threading may or may not be faster. And if the non-threaded approach meets your SLA, then it seems better to use the simpler approach. You’ll need to measure.

    You don’t need to use Java. The Pub-Sub guide describes how to pub multiple requests and then retrieve the replies.


    #webMethods
    #broker
    #Integration-Server-and-ESB
    #Universal-Messaging-Broker