无法使用STOMP将消息发送到activemq

2024-06-28 10:40:49 发布

您现在位置:Python中文网/ 问答频道 /正文

我尝试使用STOMP协议将消息发送到我的activemq,但收到以下错误:

(limetray) Vaibhavs-MacBook-Air:Desktop vaibhav$ python receiver_topic.py heyhey
Unknown response frame type: ';activemq' (frame length was 11)
Unknown response frame type: '
                              ' (frame length was 2)
Unknown response frame type: ')' (frame length was 2)
Unknown response frame type: '
                              ' (frame length was 1)
Unknown response frame type: 'tcpnodelayenabled' (frame length was 20)
Unknown response frame type: 'sizeprefixdisabled' (frame length was 20)
Unknown response frame type: '  cachesize' (frame length was 11)
Unknown response frame type: '' (frame length was 1)
Unknown response frame type: '

我使用下面的python脚本发送消息:

^{pr2}$

用于调用脚本的命令:

python receiver_topic.py heyhey

我认为有一些东西需要添加到活动MQ.xml文件。任何关于这方面的建议都会很有帮助。在


Tags: py脚本消息协议topicresponsetypeframe
1条回答
网友
1楼 · 发布于 2024-06-28 10:40:49

从所提供的一点来看,您似乎正在连接到代理上的Openwire端口,默认为“61616”,而STOMP端口通常为“61613”,因此我的建议是检查STOMP连接器绑定到哪个端口,并确保您连接到该端口。在

相关问题 更多 >