Referencing Message Service adapters

To use a Message Service adapter, such as the ActionScript, JMS, or ColdFusion Event Gateway adapter included with Flex Data Services, you reference the adapter in a destination definition or use an adapter configured as the default adapter. In addition to referencing an adapter, you also set its properties in a destination definition; for information about the JMS adapter, see Configuring the JMS adapter.

The following example shows the definition for the JMS adapter and a reference to it in a destination:

...
<service id="message-service"
    class="flex.messaging.services.MessageService"
    messageTypes="flex.messaging.messages.AsyncMessage">
...
    <adapters>
        <adapter-definition id="actionscript"
        class="flex.messaging.services.messaging.
            adapters.ActionScriptAdapter" default="true"/>
        <adapter-definition id="jms"
            class="flex.messaging.services.messaging.adapters.JMSAdapter"/>
    </adapters>

...

    <destination id="chat-topic-jms">
...    
        <adapter ref="jms"/>
...
    </destination>
...
</service>

Flex 2.01

Take a survey