Expand my Community achievements bar.

MessageBroker

Avatar

Level 1
Hello,



I would like to listen for Flex messages using the
flex.messaging.MessageBroker in a Java application. The example
Feed.java that ships with Flex2 Beta 3 shows how to create and send
messages, but I haven't found an example that shows how to listen
for messages.



Thanks,



Chris Shafer
2 Replies

Avatar

Level 2
To listen for message from mxml/ActionScript, you'll want to
use the <mx:Consumer> tag or mx.messaging.Consumer in
ActionScript. You'll find several examples of this usage in the
samples application - the dashboard feed stream and the dashboard
chat application.



You may also listen to the messages sent from Flex via the
JMS adapter using standard JMS topics/queues on the server.



- Cathy