5.5. Using Spring Integration Message Destinations

For routing messages with Spring Integration, a special IntegrationAdapter is provided that is able to send/receive messages via a MessageChannel. This is especially useful when you have more complex routing needs for your messages, such as connecting to email or FTP endpoints. The integration-message-destination XML namespace tag is used to expose a Spring Integration MessageChannel as a BlazeDS message destination. For example, to configure a BlazeDS message destination named "chatOut" that uses a Spring Integration PublishSubscribeChannel:

<integration:publish-subscribe-channel id="chatOutPubSubChannel" />

<flex:integration-message-destination id="chatOut" message-channel="chatOutPubSubChannel" />