| Flex 2 Developer's Guide > Data Access and Interconnectivity > Configuring the Message Service > Configuring Message Service destinations > Referencing message channels | |||
Messages are transported to and from a destination over a message channel. A destination references one or more message channels that are also defined in the fds.config.xml configuration file. The destination can be contacted using only one of the listed channels.
Any attempt to contact the destination on an unlisted channel results in an error. Flex applications use this configuration information to determine which channels to use to contact the specified destination. The Flex application attempts to use the referenced channels in the order specified. You can also configure default message channels, in which case you do not have to explicitly reference any channels in the destination.
The following example shows a destination's channel references. Because the samples-rtmp channel is listed first, the destination attempts to use it first.
...
<destination id="chat-topic">
...
<channels>
<channel ref="samples-rtmp"/>
<channel ref="samples-amf-polling"/>
</channels>
...
</destination>
...
For more information about message channels, see Securing destinations.
Flex 2.01