Although you can configure an instance of a Data Services Messaging 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 sent from the Flex application. You provide configuration information to the Data Services Messaging event gateway in a configuration file to do either of the following:
The Data Services Messaging 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 Flex Enterprise Services 2 server. |
The following example is a 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
If you create a configuration file, save it in the cf_root/gateway/config/ directory, with the extension .cfg.