4

是否可以将 Jmeter 与 TIBCO EMS 一起使用?因为我试图通过 JMeter JMS 插件连接到 EMS 服务器并且无法成功。

对此的任何帮助将不胜感激。

编辑:错误日志

 WARN  - jmeter.protocol.jms.sampler.JMSSampler: Name not found: 'com.tibco.tibjms.TibjmsQueueConnectionFactory' javax.naming.NameNotFoundException: Name not found: 'com.tibco.tibjms.TibjmsQueueConnectionFactory'
    at com.tibco.tibjms.naming.TibjmsContext.lookup(TibjmsContext.java:713)
    at com.tibco.tibjms.naming.TibjmsContext.lookup(TibjmsContext.java:489)
    at javax.naming.InitialContext.lookup(Unknown Source)
    at org.apache.jmeter.protocol.jms.sampler.JMSSampler.threadStarted(JMSSampler.java:295)
    at org.apache.jmeter.threads.JMeterThread$ThreadListenerTraverser.addNode(JMeterThread.java:504)
    at org.apache.jorphan.collections.HashTree.traverseInto(HashTree.java:984)
    at org.apache.jorphan.collections.HashTree.traverseInto(HashTree.java:985)
    at org.apache.jorphan.collections.HashTree.traverse(HashTree.java:967)
    at org.apache.jmeter.threads.JMeterThread.threadStarted(JMeterThread.java:479)
    at org.apache.jmeter.threads.JMeterThread.initRun(JMeterThread.java:468)
    at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:239)
    at java.lang.Thread.run(Unknown Source)
4

4 回答 4

1

我们过去确实遇到过这个问题,但使用 BSF Sampler 并在 groovy 中使用 tib 库编写脚本。

于 2011-06-17T13:06:41.977 回答
0
  • 将 jar 从 TIBCO_HOME\ems\version\lib 复制到 jmeter\lib
  • 初始上下文工厂:com.tibco.tibjms.naming.TibjmsInitialContextFactory
  • 重启jmeter
于 2014-04-11T00:42:16.860 回答
0

听起来您ConnectionFactory(通过 JNDI)在 EMS 服务器端找不到。在 TIBCO EMS 中检查配置的连接工厂名称是什么;)

通常QueueConnectionFactory应该作为默认名称存在。

于 2012-09-03T06:18:27.280 回答
-1

请按照以下步骤操作,它将起作用

初始连接工厂:com.tibco.tibjms.naming.TibjmsInitialContextFactory

提供者网址:tcp://hostname:7222

ConnectionFactory : QueueConnectionFactory 或(TopicConnectionFactory)

目的地:样品

用户名:raghu

密码:raghu

于 2016-04-08T23:54:38.997 回答