![](/img/trans.png)
[英]How can JMS Point-to-Point Sampler be used in Jmeter to send messages to an IBM MQ queue
[英]jmeter: Can I use jmeter JMeter "JMS Point-To-Point" to send messages to MSFT Azure Service Bus queue?
我有 xml 消息並想將它們發送到 MSFT ASB 隊列。
JMeter JMS Point-To-Point是否可行?
如果是如何? 無法弄清楚如何配置。 我所擁有的只是一個到 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]
是的,應該可以通過AMQP JMS 客戶端庫
腳步:
將這 2 個 jars 添加到 jmeter/lib 文件夾
創建一個名為 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
有關更多詳細信息,請參閱此內容:
我可以通過使用“AMQP Publisher-Sampler”或“Java Sampler”來實現向 azure 服務總線發送消息。 與 JMS 點對點采樣器的不同之處在於兩者都使用“發送聲明”。 “LISTEN 聲明”,在發送消息時,這不是 JMS 點對點標准實現的一部分。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.