Created attachment 27030 [details] Screenshot of JMS point to point sampler used I've made JMeter post to and listen to my MQ using a JMS point to point sampler. I'm trying to retrieve the response from my response queue by correlating the message id. The issue is that though I am able to see the correct response in the results tree, any other messages lying in the response queue are getting deleted from my response queue. Steps to reproduce : Setup MQ Queue manager and queues and jms binding file for the same. Configure a request and one response queue. Configure a JMS sampler to post a request onto the request queue using a sampler while listening to the response queue. Place some dummy messages on the response queue. Run JMeter....and check the messages lying on the response queue.
Hello, Please send your JMX file. Sebb, Milamber, I think issue is due to the fact that we are in AUTO_ACKNOWLDGE mode and we call receive, and if message has not correlation ID we don't put it back. Regards Philippe Mouawad
As this feature is designed it launches a thread that calls MessageConsumer#receive until it is active, which is while thread is active. This explains why all messages in QUeue are cleaned. Maybe you would like only your message to be received but I don't think it's possible . Maybe one option would be to enable a message selector on JMS Sampler so that it only selects messages that sampler sends. But it would always receive all messages in Queue, ie those posted by other Thread Group (you could make selector a Variable and it would make it). So I will close this issue and create a new one to let us put a selector on JMS Sampler receiver.
This issue has been migrated to GitHub: https://github.com/apache/jmeter/issues/2491