User Guide
16 Using the Flex Messaging Event Gateway
The Flex Messaging event gateway configuration file is a simple Java properties file that
contains the following properties:
The following is an example configuration file:
#
# Flex event gateway configuration
#
# This is the destination of the messages.
destination=Gateway1
# Hostname or IP address of the Flex Enterprise Server.
host=127.0.0.1
# IP addresses from which the application will accept messages.
allowedIPs=10.60.1.1,10.60.1.2.
If you create a configuration file, save it in the {cf.rootdir}/gateway/config/ directory, with the
extension .cfg.
Enabling communication with Flex
To enable communication through the Flex Messaging event gateway, you copy and paste the
information from the sample configuration files.
To enable communization through the Flex Messaging event gateway:
1. Copy the following <adapter-definition> section from the sample messaging-config.xml
file to the web application flex-messaging-service.xml file, into the <adapter> section:
<adapter-definition id="cfgateway"
class="coldfusion.flex.CFEventGatewayAdapter"/>
The sample messaging-config.xml file is located in the C:\fds2\resources\config\flex folder
when you install Flex in the default location. The web application messaging-config.xml
file is located in the C:\fds2\jrun4\servers\default\samples\WEB-INF\flex folder when
you install Flex in the default location.
Property Description
destination A hard-coded destination. If you specify this value, any destination
information in the message is ignored.
host The host name or IP address of the Flex Data Services server.
allowedIPs A comma- delimited list of IP addresses from which the Flex Messaging
event gateway accepts messages. If you do not specify a list of allowed IPs,
only processes on the local computer can send messages to the gateway.