Adobe COLDFUSION 9 Manual page 1263

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

Advertisement

DEVELOPING COLDFUSION 9 APPLICATIONS
Using External Resources
The event gateway class can also do the following:
• Provide the ColdFusion application with access to a helper class that provides event gateway-specific services, such
as buddy-list management or connection management.
• Use a file that specifies configuration information, such as IP addresses and ports, passwords, and other ID
information, internal time-out values, and so on.
About developing event gateway applications
ColdFusion application developers write applications that use event gateways. The person or company that provides
the event gateway supplies gateway-specific information to the ColdFusion developer. This information must include
the structure and contents of the messages that the ColdFusion application receives and sends to the event gateway,
plus any information about configuration files or helper methods that the ColdFusion application could use.
The ColdFusion developer writes a CFC that listens for messages. Many event gateway types send messages to a
listener CFC method named
single method. More complex event gateway types can require multiple CFC listener methods. For example, the
ColdFusion XMPP IM event gateway sends user messages to the
requests to add buddies to the
Depending on the event gateway and application types, the event gateway application could include CFM pages or
CFC methods to initiate outgoing messages. The application also could use an event gateway-specific GatewayHelper
object to do tasks such as getting buddy lists in IM applications or getting the status of a messaging server.
The ColdFusion application developer also configures an event gateway instance in the ColdFusion Administrator,
and possibly in a configuration file. The ColdFusion Administrator configuration information specifies the listener
CFC that handles the messages from the event gateway and other standard event gateway configuration details. The
configuration file, if necessary, contains event gateway type-specific configuration information.
Event gateway facilities and tools
ColdFusion provides several features and tools for developing and deploying event-handling applications, these
including the following:
• Standard event gateways.
• Development tools and example code.
• A gateway directory structure configured for use by custom event gateways and event gateway applications. This
directory also contains the example code.
• An event gateway-specific log file
• Three pages in the ColdFusion Administrator for managing event gateways.
Standard event gateways
Adobe provides several event gateways as part of ColdFusion. These event gateways support the following messaging
protocols:
SMS (Short Message Service)
as mobile phones or pagers. For detailed information on using the SMS event gateway, see
Gateway" on page 1292.
XMPP (Extensible Messaging and Presence Protocol):
detailed information on using the XMPP event gateway, see
page 1276.
. A minimal event gateway application could implement only this
onIncomingMessage
CFC method.
onAddBuddyRequest
A system designed for exchanging short, often text, messages with wireless devices, such
An open, XML-based protocol for instant messaging. For
Last updated 8/5/2010
CFC method, but sends
onIncomingMessage
"Using the Instant Messaging Event
"Using the SMS Event
Gateways" on
1258

Advertisement

Table of Contents
loading

Table of Contents