简体   繁体   中英

how to pass JMSDestination for ActiveMQ in the JMS request headers through JMS point to point sampler using JMeter?

We are using JMS point to point sampler for sending messages to different artemis queues in JMeter, while sending the request we need to pass the same queue as used in JNDI properties for JMSDestination in the request headers for JMS point to point sampler. For expample if we have queues A, B and C. For first execution queue used should be A and JMSDestination in the JMS request headers should be JMSDestination ActiveMQQueue[A], for second execution queue used should be B and JMSDestination in the JMS request headers should be JMSDestination ActiveMQQueue[C], for third execution queue used should be B and JMSDestination in the JMS request headers should be JMSDestination ActiveMQQueue[C]? We are facing issue only with JMS request headers all other places are reading the queues correctly, any solution for this will be much helpful.

how to pass the parameters in JMS request headers while JMS point to point sampler in JMeter?

I don't think it's possible, at least not with JMS Point-to-Point sampler and not with JMeter 5.5

Here is how it's handled currently :

sb.append("JMSDestination   ").append(msg.getJMSDestination()).append('\n'); 

so you cannot overwrite the value unless you amend JMeter source code or develop your own version of the JMS Point-to-Point sampler

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM