User Guide

Table Of Contents
1047
CHAPTER 43
Using the Instant Messaging Event Gateways
This chapter describes how to develop an application that uses either of two instant message (IM)
event gateway types provided with Macromedia ColdFusion MX: an IBM Lotus Sametime
gateway, and an Extensible Messaging and Presence Protocol (XMPP) gateway. It briefly describes
IM and the tools that ColdFusion MX provides for developing IM applications. It then describes
how you can configure the IM event gateway and write and test applications that use the event
gateway.
This chapter assumes that you are familiar with ColdFusion event gateway principles and
programming techniques, as described in Chapter 42, “Using Event Gateways,” on page 1019.
It does not assume that you are familiar with instant messaging, but a basic knowledge is helpful.
Note: ColdFusion MX Standard Edition does not support event gateways.
Contents
About ColdFusion and instant messages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1047
Configuring an IM event gateway . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1050
Handling incoming messages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1052
Sending outgoing messages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1053
Sample IM message handling application. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1054
Using the GatewayHelper object . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1058
About ColdFusion and instant messages
ColdFusion includes two instant messaging gateway types: one for messaging using the XMPP
protocol, and one for IBM Lotus Instant Messaging (Sametime). These gateway types use
identical interfaces for sending and receiving messages and for managing the IM presence
information and infrastructure. This chapter, therefore, refers to IM gateways, and only describes
the two types where there are differences.