当我尝试从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&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&wireformat.maxFrameSize=104857600"/> </transportConnectors>然后,您可以配置其他MQTT资源以在那里进行连接.
Then you can configure you other MQTT resources to connect there.
更多推荐
ActiveMq和蚊子桥不起作用
发布评论