【问题标题】:npm module for ActiveMQ calls用于 ActiveMQ 调用的 npm 模块
【发布时间】:2017-12-10 11:04:59
【问题描述】:

从 nodejs 进行 ActiveMQ 调用的最佳 npm 库是什么?我试过'stomp',但有时它的行为是有线的。 每当我使用 stomp 端口(61613)它工作 但是当我使用 tcp 端口 (61616) 时,它会在 ActiveMQ 日志中引发异常,说数据包大小已达到最大值。

【问题讨论】:

    标签: node.js activemq


    【解决方案1】:

    您描述为“奇怪”的行为是我所期望的行为。 ActiveMQ 5.x 中端口 61616 上的侦听器用于 OpenWire 客户端,因此不适合 STOMP 客户端。如果您使用 STOMP transportConnector,那么您应该没有任何问题。

    【讨论】:

    • 您对这个问题是正确的。但是对于每个传输的多个协议,您不需要 Artemis。 <transportConnector name="auto" uri="auto://localhost:61616"/> 将允许 STOMP、MQTT、OpenWire 和 AMQP 从版本 5.13.0 开始在同一端口上。
    猜你喜欢
    • 2019-06-27
    • 2016-11-17
    • 2020-08-28
    • 2015-07-13
    • 2021-04-12
    • 1970-01-01
    • 1970-01-01
    • 2016-12-19
    • 1970-01-01
    相关资源
    最近更新 更多