I have multiple thread groups for pushing message to ActiveMQ using JMeter publisher sampler. My JMeter publisher sampler is configured with ActiveMQ failover URL. When I'm starting the JMeter it is pushing messages to both ActiveMQ irrespective of failover.
The sampler uses the ActiveMQ JNDI initial context factory (org.apache.activemq.jndi.ActiveMQInitialContextFactory
)
The Provider URL: failover:(tcp://host1:61616,tcp://host2:61616)
The connection factory is simply the default one provided by ActiveMQ: ConnectionFactory
.
The destination is the name of the JMS queue where we want to produce the message, prefixed with dynamicQueues
: dynamicQueues/MyQueue
.