To ensure that Flex Data Services recognizes the ColdFusion Event Gateway Adapter, you edit
the messaging-config.xml file, which is located in the
C:\fds2\jrun4\servers\default\samples\WEB-INF\flex directory if you installed Flex Data
Services using the default settings.
To enable communication through the Flex Messaging event gateway:
Copy the <adapter-definition> section in which
1.
messaging-config.xml file to the <adapter> section of the web application messaging-
config.xml file.
The sample messaging-config.xml file is located in the C:\fds2\resources\config\flex
folder, and the web application messaging-config.xml file is located in the
C:\fds2\jrun4\servers\default\samples\WEB-INF\flex folder when you install Flex in the
default location.
Copy the <destination> section in which
2.
messaging-config.xml file to web application messaging-config.xml file.
Save the file.
3.
Create an instance of the Flex Messaging event
gateway
To be able to communicate with the ColdFusion application through the Flex Event Gateway,
you must create an instance of the gateway.
Create a blank file handleemail.cfc in the C:\CFusionMX7\wwwroot\flexgatewayexamples
1.
directory. (The flexgatewayexamples directory does not already exist.)
Start the ColdFusion MX Administrator.
2.
Select Event Gateways > Gateway Instances.
3.
Enter Flex2CF2 as the Gateway ID.
4.
Select Flex Messaging - Flex as the Gateway Type.
5.
Specify C:\CFusionMX7\wwwroot\flexgatewayexamples\handleemail.cfc as the CFC
6.
Path.
Select Automatic as the Startup Mode.
7.
Click Add Gateway Instance.
8.
id="cfgateway"
id="ColdFusionGateway"
Set up your development environment
from the sample
from the sample
27
Need help?
Do you have a question about the COLDFUSION MX 7.0.2-USING COLDFUSION MX WITH FLEX 2 and is the answer not in the manual?