<?xml version="1.0" encoding="UTF-8"?>
|
<service id="message-service"
|
class="flex.messaging.services.MessageService"
|
messageTypes="flex.messaging.messages.AsyncMessage">
|
|
<adapters>
|
<adapter-definition id="cfgateway" class="coldfusion.flex.CFEventGatewayAdapter" default="true" />
|
<adapter-definition id="actionscript" class="flex.messaging.services.messaging.adapters.ActionScriptAdapter"/>
|
<adapter-definition id="jms" class="flex.messaging.services.messaging.adapters.JMSAdapter"/>
|
</adapters>
|
|
<!-- ======================================== -->
|
<!-- ColdFusion Messaging Gateway -->
|
<!-- ======================================== -->
|
<destination id="ColdFusionGateway">
|
<adapter ref="cfgateway" />
|
<properties>
|
<!--
|
Star ('*') means gatewayid is found in the 'gatewayid' message header.
|
To restrict this destination to a specific gateway, enter its ID here
|
-->
|
<gatewayid>*</gatewayid>
|
|
<!--
|
If ColdFusion is running on a different host, enter that here.
|
Default is to expect ColdFusion and Flex to share the same web application.
|
You must enter 'localhost' if CF and Flex are not in the same web app.
|
|
<gatewayhost>10.1.1.1</gatewayhost>
|
-->
|
|
<!--
|
List the IP addresses of CF machines allowed to send messages to this destination
|
If not set, the default is to allow only this computer to connect.
|
|
<allowedIPs>10.1.1.1,10.2.2.2</allowedIPs>
|
-->
|
|
<!--
|
Credentials to pass along in the headers as CFUsername/CFPassword.
|
It is generally better to use setRemoteCredentials() API on client.
|
|
<remote-username></remote-username>
|
<remote-password></remote-password>
|
-->
|
|
<!--
|
You can add general Flex Messaging network and server properties here.
|
-->
|
|
</properties>
|
|
<!-- You should use the ColdFusion specific channels -->
|
<channels>
|
<channel ref="cf-polling-amf"/>
|
</channels>
|
</destination>
|
|
<destination id="clientNotifierGateway">
|
<adapter ref="actionscript"/>
|
<channels>
|
<channel ref="java-amf"/>
|
</channels>
|
</destination>
|
|
|
</service>
|