Service Virtualization

Expand all | Collapse all

how can we consume multiple messages from a topic using JMS Send receive step using DevTest 9.5.1?

  • 1.  how can we consume multiple messages from a topic using JMS Send receive step using DevTest 9.5.1?

    Posted Feb 28, 2017 12:24 AM

    I have requirement to subscribe multiple messages from a JMS topic . By using JMS send receive step I can consume only first message and 2nd message is lost. Both messages are sent simultaneously within milli time difference.

     

    Let me know how can I consume both messages ?



  • 2.  Re: how can we consume multiple messages from a topic using JMS Send receive step using DevTest 9.5.1?
    Best Answer

    Posted Feb 28, 2017 03:40 AM

    Hi,

     

    1. Check the 'Prepare Only' checkbox on the 'Receive' side of the Send Receive step.  This step will start a listener in the background but not actually consume anything yet.

    2. Copy/paste the Send Receive step and put the copy immediately afterwards.  Open the copy, make sure only the 'Receive' side is enabled, and uncheck 'Prepare Only'.  This step receives the first message from the background listener.

    3. Copy/paste step 2 as many times as you want to receive a message from the background listener started in step 1.

     

    Hope this helps,

    Jan



  • 3.  Re: how can we consume multiple messages from a topic using JMS Send receive step using DevTest 9.5.1?

    Posted Mar 03, 2017 02:51 AM

    Thanks



  • 4.  Re: how can we consume multiple messages from a topic using JMS Send receive step using DevTest 9.5.1?

    Posted Mar 02, 2017 11:23 AM

    Did Jan's recommendations help you out?

     

    Regards,

    Reid



  • 5.  Re: how can we consume multiple messages from a topic using JMS Send receive step using DevTest 9.5.1?

    Posted Mar 03, 2017 02:50 AM

    yes