User Guide

Table Of Contents
Deploying event gateways and applications 1037
Using the event gateway error log file
When a standard ColdFusion MX event gateway encounters an error that does not prevent the
event gateway from continuing to process, it logs it to the eventgateway.log file in the ColdFusion
MX logs directory. Other event gateways can also to log information in this file, or to other
application-specific files in the logs directory.
The standard ColdFusion MX event gateways log errors in interaction with any messaging server,
errors in messages sent by the ColdFusion application, and recoverable errors in event gateway
operation. The event gateways also log informational status messages for significant normal
events, including event gateway initialization and restarts.
ColdFusion MX event gateway messages in the eventgateway.log file normally have the following
format:
gatewayType (gatewayID) message body
When you are developing an event gateway application, you can use the ColdFusion Log viewer
to inspect the eventgateway.log file and filter the display by using the gateway type and possibly
the gateway ID as keywords. By selecting different severity levels, you can get a good
understanding of errors and possible inefficiencies in your application and event gateway
operation.
Deploying event gateways and applications
To deploy an event gateway application in a ColdFusion server, you must install your listener
CFC and configure an gateway instance that uses the CFC.
To deploy an event gateway application
1.
Ensure that the ColdFusion MX Administrator is configured with the required event gateway
type. If it is not, deploy the event gateway type as described in “Deploying an event gateway
on page 1100.
2.
If the event gateway type requires a configuration file, ensure that there is a valid file in the
gateway\config directory. Some event gateways might be designed to let multiple event gateway
instances share a configuration file. Others might require a separate file for each event gateway
instance.
3.
Install the event gateway application listener CFC and any other application components.
ColdFusion MX provides a cf_root\gateways\cfc directory as a convenient location for these
CFCs, and includes a mapping in the ColdFusion MX Administrator page for that directory.
However, ColdFusion does not require you to install the listener CFC in this directory.
4.
Configure an event gateway instance on the Gateways page of the Event Gateways section in
the ColdFusion MX Administrator, as described in “Configuring an event gateway instance”
on page 1028.