User Guide

Table Of Contents
Event gateway facilities and tools 1025
Development tools and example code
ColdFusion MX provides the following tools and example code for developing your own event
gateways and event gateway applications:
An SMS client (phone simulator) and a short message service center (SMSC) server simulator,
for developing SMS applications without requiring an external SMS provider.
Four sample event gateways with source code:
A template for an empty event gateway that contains a skeleton on which you can build
your own event gateways
A TCP/IP socket event gateway that listens on a TCP/IP port
A directory watcher event gateway that monitors changes to the contents of a directory
A Java Messaging Service (JMS) gateway that acts as a JMS consumer or producer.
Several sample applications, including the following:
A menu application that uses an inquiry-response drill-down menu to provide services such
as weather reports and stock quotes.
A simple echo application that sends back the messages that it receives.
A temperature converter, an asynchronous logging application.
An application that returns employee phone number and other information.
The chapters in this manual use these example applications.
Javadoc documentation for the Java interfaces and classes that you use to create gateways.
For more information on these examples, see “Using the example event gateways and gateway
applications” on page 1040.
The ColdFusion gateway directory
The ColdFusion MX installation includes a cf_root\WEB-INF\cfusion\gateway directory on
J2EE configurations, or cf_root\gateway directory on server configurations. This directory
contains all the code for ColdFusion example event gateways and example event gateway
applications, and example configuration files for use by standard ColdFusion event gateways. You
do not have to put your event gateways, event gateway application CFCs, or event gateway
configuration files in this directory, but ColdFusion is configured to find event gateways and
CFCs that you put there.
The following table lists the event gateway directory subdirectories, their purpose, and their initial
contents. For more information on using the example event gateways and applications, see “Using
the example event gateways and gateway applications” on page 1040.
Directory Purpose
cfc Event gateway application CFCs. ColdFusion is installed with an Administrator
Mapping between /gateway and this cfc directory.
cfc/examples Code for the ColdFusion sample applications.