- Flex Message Service (FMS)
- Flex Data Management Service (FDMS)
- Flex Proxy Service (FPS)
- Remoting Service
1. Take the FDS blank application as your starting point
2. Open WEB-INF/flex/messaging-config.xml and add this destination node below default-adapter node:Destination Node Code
3. Define message consumer in MXML
<mx:Consumer id="consumer" destination="feed" message="messageHandler(event.message)"/>
4. Subscribe/Unsubscribe to message at desired part of the flex code as:
consumer.subscribe();
consumer.unsubscribe();
5. Whenever there is a message generated at the backend, now your flex application will hear it. A very simple sample java file that generates message will look like this: