I am trying to post a message via JMeter's JMS Publisher Sampler to Amazon MQ (ActiveMQ engine) using amqps protocol, but I am receiving a response message:
javax.jms.JMSException: Could not create Transport. Reason: java.io.IOException: Transport scheme not recognised: [amqps].
If I use another OpenWire protocol such as ssl or tcp I am successfully able to post the message. I have also verified that I have the connectivity to the broker from my machine.
I have added Apache Qpid jars and Qpid JMS in classpath.
Is there a way to post messages from JMeter using amqps protocol?
Below are the details:
- Initial Context Factory:
org.apache.activemq.jndi.ActiveMQInitialContextFactory - Provide URL:
amqps://broker-url:5671 - ConnectionFactory:
ConnectionFactory - Destination:
dynamicTopics/topicname - Use Authroization is checked.
I am using Qpid JMS 2.5, Geronimo, & ActiveMQ client 5.17.6 jars.
Your question cannot be comprehensively answered if you don't provide your JMS Publisher Sampler configuration details and jmeter.log file (preferably with JMeter debug logging enabled for JMS components and the libraries you're using)
Most probably your connection factory is wrong, you need to use
org.apache.activemq.artemis.jms.client.ActiveMQConnectionFactoryinstead of what you're currently using.