Configuring a Data Management event gateway

Although you can configure an instance of a Data Management event gateway by creating a configuration file and specifying that file as the configuration file when you create an instance of the event gateway, you can also provide the configuration information in the message. You provide configuration information to the Data Management event gateway in a configuration file to do either of the following:

  • Have the Data Management event gateway send messages to LiveCycle Data Services ES on a different computer.

  • Use the Data Management event gateway with a specific Flex destination, and ignore any destination specified in the message.

The Data Management event gateway configuration file is a simple Java properties file that contains the following properties:

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 LiveCycle Data Services ES server. Omit the host name if you are running LiveCycle Data Services ES as part of ColdFusion.

The following example is a configuration file:

# 
# Data Management event gateway configuration 
# 
# This is the destination where messages are sent. 
destination=myDestination 
 
# Host name or IP address of the LiveCycle Data Services ES Server 
host=127.0.0.1

If you create a configuration file, save it in the cf_root/gateway/config/ directory, with the extension .cfg.

Note: A single instance of the Data Management event gateway can send messages to any destination that is registered with the ColdFusion Data Service Adapter. However, if the destination is configured in the Data Management event gateway configuration file, the destination in the message is ignored.