从 Flex 客户端使用 ActiveMQ 消息时出现问题

发布于 2024-07-06 17:57:25 字数 292 浏览 2 评论 0原文

我无法使用 Flex 客户端通过 ActiveMQ 发送的消息。 通过 Producer 发送消息似乎可以工作,我还可以看到 Flex 客户端已连接并通过 Consumer 对象上的属性订阅,但是 Consumer 上的“message”事件从未触发,因此似乎未收到消息。

当我查看 ActiveMQ 控制台时,我可以看到订阅者数量、发送的消息数量和接收的消息数量。 奇怪的是,接收到的消息计数器似乎在增加,并且我还可以跟踪 Tomcat 控制台中的日志语句,但在 Flex 客户端中再次没有收到任何消息。

有任何想法吗?

I am unable to consume messages sent via ActiveMQ from my Flex client. Sending messages via the Producer seems to work, I can also see that the Flex client is connected and subscribed via the properties on the Consumer object, however the "message" event on the Consumer is never fired so it seems like the messages are not received.

When I look in the ActiveMQ console, I can see the number of subscribers, the number of messages sent and the number of messages received. The strange thing is that the received messages counter seems to increment and that I can also trace the log statements in the Tomcat console, but again no messages are received in the Flex client.

Any ideas?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

小梨窩很甜 2024-07-13 17:57:25

使用全新安装的 Tomcat 从头重建我的应用程序后,一切似乎都正常。 也许这是因为我使用的是包含预配置 Tomcat 实例的 BlazeDS Turnkey 版本。

顺便说一句:这是一个很棒的教程:http://mmartinsoftware。 blogspot.com/2008/05/simplified-blazeds-and-jms.html

After rebuilding my app from scratch with a fresh install of Tomcat, everything seems to work. Maybe this was caused by the fact that I was using the BlazeDS Turnkey version that contains a preconfigured instance of Tomcat.

BTW: This is a great tutorial: http://mmartinsoftware.blogspot.com/2008/05/simplified-blazeds-and-jms.html

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文