ActiveMq and mosquitto bridge not working

徘徊边缘 提交于 2020-01-25 04:05:11

问题


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

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

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>

回答1:


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>

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



来源:https://stackoverflow.com/questions/38974326/activemq-and-mosquitto-bridge-not-working

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!