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

JMS trigger batch processing with minimal sessions

  • 1.  JMS trigger batch processing with minimal sessions

    Posted Wed April 05, 2017 02:26 AM

    Hi,

    We are using JMS trigger for batch processing. Everything is working fine while the trigger continuously monitoring the queue and taking messages in batch(say 100) and pushing this to the subscribing service to handle using pub.jms:batchTriggerSpec.

    But we got a requirement like this,

    1.The trigger need to wait monitoring the queue - until the messages in the queue reaches the max batch size 100(mentioned in the trigger properties). Is there any possibility to do this.
    2. The problem we found by the trigger continuously monitoring the queue in batch processing is, it is creating multiple sessions to receive each of the message, so the sessions(start and end) Example - 100 messages*2 =200 rows in wMsession table.

    We want to avoid this case, where the trigger should wait until the batch size reaches in the queue and then pick the messages(batch100). so that it will create a single session (start and end).

    Note: This all should happen in real time, disabling trigger option not worthy.

    Appreciate your help…

    Thanks…


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


  • 2.  RE: JMS trigger batch processing with minimal sessions

    Posted Wed April 05, 2017 04:42 AM

    Hello Sudheer

    You can create a JMS consumer and schedule it to receive the messages on demand rather than receiving the message when its available in the JMS destination.

    Regards
    Sasa


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


  • 3.  RE: JMS trigger batch processing with minimal sessions

    Posted Wed April 05, 2017 12:45 PM

    Hi Sasa,

    Thanks for the response, I tried the JMS consumer and scheduled it to run as per the required time interval.

    It’s serving purpose for the time being, will do some more testing to finalize this approach.

    Thanks,
    S7


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