Adobe COLDFUSION 9 Manual page 1264

Developing applications
Hide thumbs Also See for COLDFUSION 9:
Table of Contents

Advertisement

DEVELOPING COLDFUSION 9 APPLICATIONS
Using External Resources
IBM Lotus Instant Messaging
collaboration. For detailed information on using the Lotus Sametime event gateway, see
Event
Gateways" on page 1276.
ColdFusion also provides an event gateway, the CFML asynchronous event gateway, that lets a CFML application
invoke a CFC method asynchronously. This event gateway does not follow the model of providing a mechanism for
exchanging messages with resources outside ColdFusion. Instead, it provides a one-way path for invoking CFCs when
an application does not require (indeed, cannot receive) a return value from the CFC. For detailed information on
using the CFML asynchronous event gateway, see
page 1269.
Development tools and example code
ColdFusion 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 document 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
page 1271.
The ColdFusion gateway directory
The ColdFusion 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 place 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 place
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
gateway
applications" on page 1271.
(commonly referred to as Lotus Sametime) The IBM product for real-time
"Using the CFML event gateway for asynchronous
"Using the example event gateways and gateway
Last updated 8/5/2010
"Using the Instant Messaging
applications" on
"Using the example event gateways and
1259
CFCs" on

Advertisement

Table of Contents
loading

Table of Contents