我正在尝试从 JMeter 运行 JMS 负载测试。目标服务器是 ActiveMQ Artemis 2.16.0。 我已按如下方式配置 JMS 发布器:
虽然在broker中已经创建了Destination“queueDemo”,但是Result Tree中报如下错误:“Response message: javax.naming.NameNotFoundException: queueDemo”
我的配置中是否遗漏了什么? 除此之外,我在 JMeter 的“lib”文件夹中添加了文件 artemis-jms-client-all-2.16.0.jar。
答案 0 :(得分:2)
您应该为目标 dynamicQueues/
使用 queueDemo
前缀,因为您没有在 JNDI 属性中定义它,例如:
dynamicQueues/queueDemo
阅读有关 ActiveMQ Artemis JNDI 实现以及如何在 the documentation 中使用它的更多信息。
答案 1 :(得分:1)
除了@Justin 提到的,您还可以将 jndi.properties 打包成一个 jar 文件并将其放入 JMeter 的“lib”文件夹中。