Search code examples
jmeterjndiibm-mq

Jmeter2.9 with IBM MQ Not Connecting


I am trying to use JMeter to work with IBM MQ.

As per the article I created the JNDI Bindings.

Now I am trying to connect JMeter using the JNDI Bindings. I give the QCF (Queue Connection Factory), but it is throwing an error

"Response message: java.lang.IllegalStateException: QueueConnectionFactory expected, but got javax.naming.Reference"

I searched around a lot, but didnt find anything. I looked at source code for Sampler and it looks like it is not able to find the Connection Factory from the JNDI.

Any idea what could i be missing? I Didnt know if the Configuration details would help, if it would i can provide that.

Thanks in Advance!


Solution

  • I was able to resolve this by copying all the MQ Jars (that comes with a complete Websphere MQ installation) and placing them into JMeter/Lib.

    Now it works fine.

    Thanks for anyone who viewed this. Hope my answer may provide some light to others who may encounter the same problem.