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.
Sending messages to a BlazeDS destination can be ahcieved using MessageBrokerServlet on the server.
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.