Good morning everyone!
I find myself making a plan in JMeter for the famous stress tests, although I have already tested Weblogic queues, I have a problem with MQ queues, I had never done it.
I have carried out the procedure of different tutorials as it is, but I have not been successful. Here are some of the tutorials I've based on:
The configuration I have is the following:
in the properties of the JNDI I have the data:
- queueManager.
- hostName.
- port.
- transportType.
- queue.QL.QUEUE.IN
This is the error I get when launching the request:
Response message: javax.jms.JMSException: Cannot send, channel has already failed: tcp://XX.XX.XX.XX:XXXX
If someone has done this type of configuration in JMeter and could help me, I really thank you.
After extensive research together, the following solution was found.
Generate an exclusive folder for the following Jars
Ex: C:\example\apache-jmeter-4.0\lib\ibmmq
Edit the user.properties file, placing the following line: user.classpath=../lib/ibmmq;
In the JMS point to point template:
In the field QueueConnectionFactory place CONNECTION_FACTORY
Similarly, the Initial Context Factory must be placed com.elega9t.jmeter.jms.InitialContextFactory
For the queue name (JNDI Name Request Queue), QUEUE_ [Queue Name] must always be specified.
Note : for this type of connections they are established by default.
If you get errors of missing libraries, you must load the **activemqall** jar to load all the MQ libs.