MACROMEDIA COLDFUSION MX 7.0.2-USING COLDFUSION MX WITH FLEX 2 Use Manual page 17

Table of Contents

Advertisement

Copy the following <destination> section from the sample messaging-config.xml file to the
2.
web application messaging-config.xml file:
<!-- ======================================== -->
<!-- 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 look for ColdFusion on this computer.
<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.
Do NOT use 127.0.0.1, it must be the actual IP address
<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>
-->
</properties>
<!--
These channels will work unless you want to pass value objects
(objects that get translated to and from CFCs) in your messages.
In that case, use the "cf-dataservice-rtmp" and "cf-polling-amf
channels".
-->
<channels>
<channel ref="my-rtmp"/>
<channel ref="my-polling-amf"/>
</channels>
</destination>
Enabling communication with Flex
17

Advertisement

Table of Contents
loading

This manual is also suitable for:

Coldfusion mx

Table of Contents