无法将消息从 JMeter 发布到 ActiveMQ Artemis
Unable to publish messages from JMeter to ActiveMQ Artemis
我正在尝试 运行 从 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。
您应该为目标使用 dynamicQueues/
前缀 queueDemo
因为您没有在 JNDI 属性中定义它,例如:
dynamicQueues/queueDemo
在 the documentation 中阅读有关 ActiveMQ Artemis JNDI 实现及其使用方法的更多信息。
除了@Justin提到的,你还可以将jndi.properties打包成一个jar文件,放到JMeter的“lib”文件夹中。
我正在尝试 运行 从 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。
您应该为目标使用 dynamicQueues/
前缀 queueDemo
因为您没有在 JNDI 属性中定义它,例如:
dynamicQueues/queueDemo
在 the documentation 中阅读有关 ActiveMQ Artemis JNDI 实现及其使用方法的更多信息。
除了@Justin提到的,你还可以将jndi.properties打包成一个jar文件,放到JMeter的“lib”文件夹中。