Service Virtualization

  • 1.  How to retrieve JMS headers from Queues & Topics

    Posted Oct 21, 2016 07:55 AM

    How to retrieve JMS headers from Queues & Topics? We are using JMS JNDI & Message Consumer steps in our test case but still not able to fetch the headers



  • 2.  Re: How to retrieve JMS headers from Queues & Topics
    Best Answer

    Posted Oct 21, 2016 11:32 AM

    If you're using the 'JMS Messaging (JNDI)' or 'Message Consumer' step, then you need to do two things:

     - Make sure the 'make payload last response' checkbox on the step that receives the message is *unchecked*.

     - Add a filter to the step that receives the message: 'Messaging/ESB' -> 'Extract Payload and Properties from Messages'

     

    If you're using the new 'JMS Send Receive' step then message headers are automatically extracted to testExec properties, no extra steps required.  This can be disabled by checking the 'Quiet' checkbox in the step info.