本文介绍了JMeter 3.2 IBM MQ 8的点对点配置=> Java例外的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试为IBM MQ 8使用JMeter点对点JNDI配置,并收到以下错误消息:

I am trying to use JMeter Point-to-Point JNDI configuration for IBM MQ 8 and receive the error message below:

java.lang.IllegalStateException: QueueConnectionFactory expected, but got com.ibm.mq.jms.MQConnectionFactory

配置:


  1. 在MQExplorer中配置JNDI上下文

  2. 附加测试计划com.ibm.mq.allclient.jar

  3. 带JNDI配置的JMS点对点采样器

=>结果异常响应消息

=> Result with exception Response message

我还尝试复制所需的jar文件(com.ibm.mq. allclient.jar)到JMeter lib目录。遗憾的是没有成功

I also tried to copy the required jar file (com.ibm.mq.allclient.jar) to the JMeter lib directory. Unfortunately without success

推荐答案

在MQExplorer中创建MQQueueConnectionFactory而不是现在的MQConnectionFactory。

Create a MQQueueConnectionFactory in MQExplorer instead of the MQConnectionFactory you have now.

这篇关于JMeter 3.2 IBM MQ 8的点对点配置=> Java例外的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-22 06:39