JMeter和TIBCO EMS

eoxn13cs  于 5个月前  发布在  其他
关注(0)|答案(4)|浏览(56)

是否可以将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)

字符串

vlf7wbxs

vlf7wbxs1#

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

ygya80vv

ygya80vv2#

  • 将jar文件从TIBCO_HOME\ems\version\lib复制到jmeter\lib
  • 初始上下文工厂:com.tibco.tibjms.naming.TibjmsInitialContextFactory
  • 重新启动jmeter
cbjzeqam

cbjzeqam3#

好吧,听起来你的ConnectionFactory(通过JNDI)在EMS服务器端找不到。在TIBCO EMS中检查配置的连接工厂名称是什么;)
通常QueueConnectionFactory应该作为默认名称。

gg0vcinb

gg0vcinb4#

按照下面的步骤,它将工作

初始连接工厂:com.tibco.tibjms.naming.TibjmsInitialContextFactory
提供程序URL:tcp://hostname:7222
ConnectionFactory:删除eConnectionFactory或(TopicConnectionFactory)
目的地:样品
用户名:raghu
密码:

相关问题