User Guide

Table Of Contents
1050 Chapter 43: Using the Instant Messaging Event Gateways
Outgoing message handling
Applications send outgoing instant messages using the CFML
SendGatewayMessage method.
Incoming message-handling CFC methods can also send messages, including responses to
requests from others to add the ColdFusion gateways ID to their buddy list. For more
information on sending messages, see “Sending outgoing messages” on page 1053.
IMGatewayHelper methods
The ColdFusion IM gateway provides the IMGatewayHelper class, a gateway helper that you can
access by calling the CFML
GetGatewayHelper function. The IMGatewayHelper class has
methods that let you do the following:
Get and set gateway configuration information and get gateway statistics
Get and set the gateway online presence status
Manage the gateway’s buddy list
Manage permissions for others to get information about the gateway status.
For more information on using GatewayHelper methods, including lists of all the methods, see
“Using the GatewayHelper object” on page 1058.
Configuring an IM event gateway
You provide IM-specific configuration information to the IM event gateway in a configuration
file. You specify the configuration file location when you configure the IM event gateway instance
in the ColdFusion MX Administrator. ColdFusion provides sample XMPP and Lotus Sametime
event gateway configuration files in the cf_root\WEB-INF\cfusion\gateway\config directory on
J2EE configurations, and cf_root\gateway\config directory on server configurations. The
configuration file can have the following information.
Note: The default value in the table is the value the gateway uses if the configuration file omits the
property, not the value in the default configuration files.
Property Default value Description
userID none (Required) The IM user ID to use to connect to the IM
server.
password none (Required) Password for the user.
secureprotocol none XMPP only.
Required if you set
securerequirement to true.
The protocol to use for secure communications. The
following values are valid:
TSL
SSL