ActiveMq和蚊子桥不起作用 [英] ActiveMq and mosquitto bridge not working

查看:173
本文介绍了ActiveMq和蚊子桥不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试从mosquitto连接到activemq时,我在activemq控制台上遇到错误.

I am getting below error on activemq console when i am trying to connect from mosquitto to activemq.

WARN | Transport Connection to: tcp://192.168.0.27:48689 failed: java.io.IOException: Unknown data type: 77

我的设置如下 192.168.0.27 ----具有以下网桥配置的Mosquitto经纪人

MY setup is as below 192.168.0.27 ---- Mosquitto broker with below configuration for bridge

connection try
try_private false
address 192.168.0.22:61616
username myuser
password mypassword
start_type automatic
clientid 1
notifications true
topic inbound/# in alpha/ beta/
topic outbound/# out harry/ larry

我的ActiveMQ代理为192.168.0.22,而TansportConnector如下所示

My ActiveMQ broker is 192.168.0.22 with TansportConnector is as below

<transportConnectors>
        <transportConnector name="openwire" uri="tcp://0.0.0.0:61616?maximumConnections=1000&amp;wireformat.maxFrameSize=104857600"/>
    </transportConnectors>

推荐答案

这将不起作用,因为将代理上的连接器创建为仅适用于OpenWire客户端的OpenWire连接器.您需要将MQTT连接器添加到代理:

This won't work because the connector on the broker is being created as the OpenWire connector which only works with OpenWire clients. You need to add an MQTT connector to your broker:

<transportConnectors>
    <transportConnector name="mqtt" uri="mqtt://0.0.0.0:1883?maximumConnections=1000&amp;wireformat.maxFrameSize=104857600"/>
</transportConnectors>

然后,您可以配置其他MQTT资源以在那里进行连接.

Then you can configure you other MQTT resources to connect there.

这篇关于ActiveMq和蚊子桥不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆