User Guide
25
3
CHAPTER 3
Use ColdFusion Event
Gateway Adapter
This tutorial shows you how to create a Flex application to send a message to a ColdFusion
application and a ColdFusion component to send a message to a Flex application. The sample
application does not take advantage of capabilities that are unique to Adobe Flex, instead, it
describes the communication with ColdFusion applications that the ColdFusion Event
Gateway Adapter enables.
To show the capabilities of the ColdFusion Event Gateway Adapter and the Flex Messaging
event gateway, the sample application lets you enter information in a form in a Flex
application. The Flex application sends the information through the ColdFusion Event
Gateway Adapter and Flex Messaging event gateway to the ColdFusion application. The
ColdFusion application then sends an e-mail message that contains the message to the
recipient specified in the Flex application. Finally, the ColdFusion component sends a
message to the Flex application, which displays the body of the message.
In this tutorial, you’ll complete the following tasks:
Set up your development environment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
Create the Flex application. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
Create the ColdFusion application . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
Test the application . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33