Not yet rated
Tags:



Problem

Flex applications have Producer component. Producing messages to BlazeDS destinations is straight forward. Achieving the same from a non-Flex based client is a bit different.

Solution

Sending messages to a BlazeDS destination can be ahcieved using MessageBrokerServlet on the server.

Detailed explanation

Sending messages to a BlazeDS destination can be ahcieved using MessageBrokerServlet on the server.

We should create a message object of the type AsyncMessage class. We will set destination and body to this message. Once we have the message object, we will just have to invoke method in MessageBrokerServlet. MessageBrokerServlet will send messages to the destination, which will in turn be broadcasted to all the consumers of that destination. Please find more details with sample at the URL below.

http://sujitreddyg.wordpress.com/2008/08/14/sending-messages-from-java-to-blazeds-destinations-using-messagebroker

Report abuse

Related recipes