ActiveMq和蚊子桥不起作用

编程入门 行业动态 更新时间:2024-10-27 05:31:29
本文介绍了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和蚊子桥不起作用

本文发布于:2023-10-07 17:18:52,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1470006.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:蚊子   不起作用   ActiveMq

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!