【问题标题】:Unable to publish messages from JMeter to ActiveMQ Artemis无法将消息从 JMeter 发布到 ActiveMQ Artemis
【发布时间】:2021-01-20 16:10:07
【问题描述】:

我正在尝试从 JMeter 运行 JMS 负载测试。目标服务器是 ActiveMQ Artemis 2.16.0。 我已将 JMS Publisher 配置如下:

虽然在broker中已经创建了Destination“queueDemo”,但是Result Tree中报错如下:“Response message: javax.naming.NameNotFoundException: queueDemo”

我的配置中是否缺少某些内容? 除此之外,我还在 JMeter 的“lib”文件夹中添加了 artemis-jms-client-all-2.16.0.jar 文件。

【问题讨论】:

    标签: jmeter activemq-artemis


    【解决方案1】:

    您应该为您的目的地 queueDemo 使用 dynamicQueues/ 前缀,因为您没有在 JNDI 属性中定义它,例如:

    dynamicQueues/queueDemo
    

    the documentation 中阅读有关 ActiveMQ Artemis JNDI 实现以及如何使用它的更多信息。

    【讨论】:

      【解决方案2】:

      除了@Justin提到的,你还可以将jndi.properties打包成一个jar文件,放到JMeter的“lib”文件夹中。

      【讨论】:

        猜你喜欢
        • 2018-01-31
        • 2021-09-02
        • 1970-01-01
        • 2019-01-24
        • 1970-01-01
        • 2018-12-12
        • 2019-04-02
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多