Bug 51228 - JMeter clears all messages in queue it listens to via MQ interface
Summary: JMeter clears all messages in queue it listens to via MQ interface
Status: RESOLVED WONTFIX
Alias: None
Product: JMeter - Now in Github
Classification: Unclassified
Component: Main (show other bugs)
Version: 2.4
Hardware: PC Windows XP
: P2 major with 1 vote (vote)
Target Milestone: ---
Assignee: JMeter issues mailing list
URL:
Keywords:
Depends on: 52088
Blocks:
  Show dependency tree
 
Reported: 2011-05-19 06:52 UTC by Nitu
Modified: 2011-10-25 19:18 UTC (History)
1 user (show)



Attachments
Screenshot of JMS point to point sampler used (68.94 KB, image/tiff)
2011-05-19 06:52 UTC, Nitu
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Nitu 2011-05-19 06:52:12 UTC
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.
Comment 1 Philippe Mouawad 2011-09-08 08:23:34 UTC
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
Comment 2 Philippe Mouawad 2011-10-25 19:18:15 UTC
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.
Comment 3 The ASF infrastructure team 2022-09-24 20:37:46 UTC
This issue has been migrated to GitHub: https://github.com/apache/jmeter/issues/2491