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
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.
Retrieving data ...