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

时间:2021-10-13 00:15:54

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.

我无法使用从Flex客户端通过ActiveMQ发送的消息。通过Producer发送消息似乎有效,我还可以看到Flex客户端通过Consumer对象上的属性进行连接和订阅,但是Consumer上的“message”事件从未被触发,所以看起来消息没有收到。

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.

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

Any ideas?

1 个解决方案

#1


1  

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.

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

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

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

#1


1  

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.

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

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

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