BlazeDS has some examples of dispatching events from Java but in your 
Flex application you will have to set up consumer to listen(pole) for 
messages.

Sample in BlazeDS: http://localhost:8400/samples/#traderdesktop
Start the feed triggers a JSP with code like this...
Feed feed = new Feed();
feed.start();


Then inside Feed.java

AsyncMessage msg = new AsyncMessage();
msg.setDestination("feed");
msg.setClientId(clientID);
msg.setMessageId(UUIDUtils.createUUID());
msg.setTimestamp(System.currentTimeMillis());
msg.setBody(new Double(currentValue));
msgBroker.routeMessageToService(msg, null);

Hope this helps.

Reply via email to