User Guide

Table Of Contents
1026 Chapter 42: Using Event Gateways
The eventgateway.log file
Event gateways provided with ColdFusion MX log event gateway errors and events to the cf_root\
WEB-INF\cfusion\logs\eventgateway.log file on J2EE configurations, or the cf_root\logs\
eventgateway.log file on server configurations. ColdFusion MX includes methods that let any
event gateway use this file. This log file can be very useful in debugging event gateways and event
gateway applications.
ColdFusion MX Administrator event gateway pages
The ColdFusion MX Administrator includes a Gateways section with three pages for managing
event gateways:
Settings
Gateway types
Gateways
The Settings page lets you enable and disable support for event gateways, specify the number of
threads that ColdFusion can devote to processing events, specify the maximum number events
that ColdFusion can hold in its event queue (which holds events that are waiting to be processed)
and start the SMS test server.
The Gateway Types page lets you add, remove, and configure event gateway types by specifying a
name, a Java class, and startup timeout behavior.
Note: The gateway type name in the ColdFusion MX Administrator does not have to be the same as
the gateway type that is used in the gateway Java code and the
CFEvent data structure; however, you
should use the same name in both places for consistency.
config Configuration files for all ColdFusion event gateways, including standard
ColdFusion MX event gateways, such as SMS, and example event gateways, such
as the directory watcher event gateway.
doc/api Javadoc for the Gateway, and GatewayHelper interfaces, and the CFEvent,
GatewayServices, and GenericGateway classes that gateway developer use when
writing gateways. This documentation is a subset of the information in the “Gateway
development interfaces and classes” section in CFML Reference.
lib Executable code for example and user-developed event gateway classes. The
ColdFusion MX class loader includes this directory on its classpath and includes
any JAR files that are in that directory on the class path. The examples.jar file in this
directory contains the class files for the DirectoryWatcherGateway,
EmptyGateway, and SocketGateway classes.
src/examples Source code for the example event gateway classes that Macromedia provides.
Includes the EmptyGateway.java file and the following subdirectories:
socket: Socket gateway source files
watcher: directory watcher gateway source files
JMS: JMS gateway source files
Directory Purpose