JMeter 和 TIBCO EMS

发布于 2024-08-09 05:35:52 字数 1263 浏览 6 评论 0原文

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

Is it possible to use Jmeter with TIBCO EMS? Because I am trying to connect to EMS servers through JMeter JMS plugin and not able to succeed on that.

Any help on this would be greatly appreciated.

EDIT: Error Log

 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)

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

jJeQQOZ5 2024-08-16 05:35:52

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

We did come across this problem in the past but worked around using BSF Sampler and scripted using tib library in groovy.

_失温 2024-08-16 05:35:52
  • 将 jar 从 TIBCO_HOME\ems\version\lib 复制到 jmeter\lib
  • 初始上下文工厂: com.tibco.tibjms.naming.TibjmsInitialContextFactory
  • 重新启动 jmeter
  • copy the jars from TIBCO_HOME\ems\version\lib to jmeter\lib
  • Initial Context Factory: com.tibco.tibjms.naming.TibjmsInitialContextFactory
  • restart jmeter
傾城如夢未必闌珊 2024-08-16 05:35:52

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

通常 QueueConnectionFactory 应作为默认名称。

Well that sounds like your ConnectionFactory (via JNDI) could not be found on the EMS Server side. Check within TIBCO EMS what the configured connection factory names are ;)

Usually QueueConnectionFactory should be there as default name.

浪漫人生路 2024-08-16 05:35:52

按照以下步骤操作,就可以了

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

提供商 URL:tcp://主机名:7222

ConnectionFactory:QueueConnectionFactory 或(TopicConnectionFactory)

目的地:样本

用户名:raghu

密码:raghu

Follow below steps, it will work

Initial connection Factory :
com.tibco.tibjms.naming.TibjmsInitialContextFactory

Provider URL : tcp://hostname:7222

ConnectionFactory : QueueConnectionFactory or(TopicConnectionFactory)

Destination : sample

username : raghu

password : raghu

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文