【问题标题】:jmeter: Can I use jmeter JMeter "JMS Point-To-Point" to send messages to MSFT Azure Service Bus queue?jmeter:我可以使用 jmeter JMeter“JMS 点对点”将消息发送到 MSFT Azure 服务总线队列吗?
【发布时间】:2019-03-07 11:13:00
【问题描述】:

我有 xml 消息,想将它们发送到 MSFT ASB 队列。

JMeter 是否可行JMS 点对点

如果是,如何? 无法弄清楚如何配置。 我只有一个到 ASB 的连接字符串。

提前致谢。


反馈一:

INFO o.a.q.j.s.SaslMechanismFinder: Best match for SASL auth was: SASL-ANONYMOUS
2018-10-02 18:46:19,734 INFO o.a.q.j.JmsConnection: Connection ID::8356a2a7-4cf2-4ab0-8ee9-240b62f5fd73:1 connected to remote Broker: amqps://<HOSTNAME>.servicebus.windows.net
2018-10-02 18:46:20,321 WARN o.a.q.j.p.a.b.AmqpResourceBuilder: Open of resource:(JmsProducerInfo { ID::8356a2a7-4cf2-4ab0-8ee9-240b62f5fd73:1:1:1, destination = <QUEUENAME> }) failed: Unauthorized access. 'Send' claim(s) are required to perform this operation. Resource: 'sb://<HOSTNAME>.servicebus.windows.net/<QUEUENAME>'. TrackingId:79fda5972c644c8d8f1c33bea40987ae_G52, SystemTracker:gateway7, Timestamp:10/2/2018 3:46:17 PM [condition = amqp:unauthorized-access]
2018-10-02 18:46:20,321 ERROR o.a.j.p.j.s.JMSSampler: Unauthorized access. 'Send' claim(s) are required to perform this operation. Resource: 'sb://<HOSTNAME>.servicebus.windows.net/<QUEUENAME>'. TrackingId:79fda5972c644c8d8f1c33bea40987ae_G52, SystemTracker:gateway7, Timestamp:10/2/2018 3:46:17 PM [condition = amqp:unauthorized-access]
javax.jms.JMSSecurityException: Unauthorized access. 'Send' claim(s) are required to perform this operation. Resource: 'sb://<HOSTNAME>.servicebus.windows.net/<QUEUENAME>'. TrackingId:79fda5972c644c8d8f1c33bea40987ae_G52, SystemTracker:gateway7, Timestamp:10/2/2018 3:46:17 PM [condition = amqp:unauthorized-access]

【问题讨论】:

    标签: jmeter jms


    【解决方案1】:

    我可以使用“AMQP Publisher-Sampler”或“Java Sampler”将消息发送到 Azure 服务总线。 JMS 点对点采样器的不同之处在于两者都使用“发送声明”。发送消息时的“LISTEN 声明”,这不是 JMS 点对点标准实现的一部分。

    【讨论】:

      【解决方案2】:

      是的,应该可以通过AMQP JMS Client library

      步骤:

      • 将这 2 个 jars 添加到 jmeter/lib 文件夹

        • geronimo-jms_1.1_spec-1.0.jar
        • qpid-jms-client-[版本].jar
      • 创建一个名为 servicebus.properties 的属性文件:

        # servicebus.properties - sample JNDI configuration
        
        # Register a ConnectionFactory in JNDI using the form:
        # connectionfactory.[jndi_name] = [ConnectionURL]
        connectionfactory.SBCF = amqps://[SASPolicyName]:[SASPolicyKey]@[namespace].servicebus.windows.net
        
        # Register some queues in JNDI using the form
        # queue.[jndi_name] = [physical_name]
        # topic.[jndi_name] = [physical_name]
        queue.QUEUE = queue1
        

      以这种方式配置JMS Point-to-Point(更改主机):

      更多详情请看这里:

      【讨论】:

      • 感谢您的回复。做了你上面列出的所有事情,离你又近了一步。检查原始帖子中的反馈 1。不要得到这个。这里应该做什么?
      • 您没有足够的权限发送到队列,请检查 azure 配置
      猜你喜欢
      • 2019-06-21
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-08-06
      • 2014-06-16
      • 2021-03-06
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多