Adobe COLDFUSION 9 Manual page 626

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

Advertisement

DEVELOPING COLDFUSION 9 APPLICATIONS
Flex and AIR Integration in ColdFusion
3
Select one of the radio buttons, as follows:
• Select ColdFusion Flash Remoting to compile in Flex Builder.
• If you installed LiveCycle Data Services and want to compile the application on the server, select LiveCycle Data
services in Flex Builder 3.
4
Click Next to open the Configure ColdFusion page, and enter the required information. If you selected LiveCycle
Data services in step 3, you can select to compile the application locally or on the server. Select to compile on the
server only when you are developing your application, for convenience. Do not select to compile on the server code
that you deploy, because the MXML page is not compiled to a SWF file until the user requests it, and the compiler
does not create an HTML wrapper page.
5
Click Finish to complete the configuration.
If you do not specify ColdFusion in the Server technology section of the Create a Flex project page, and decide later to
compile the application for use with ColdFusion, configure Flex Builder manually, as follows:
1
Select Project > Properties.
2
Select Flex Complier in the right pane of the Properties dialog.
In the Additional Compiler arguments add
3
file in the local ColdFusion installation. For example, on a Windows system with a default ColdFusion stand-alone
installation, specify the following argument string.
-services=C:/ColdFusion8/wwwroot/WEB-INF/flex/services-config.xml
Specify a CFC
To specify a CFC to connect to, you do one of the following:
• Specify the dot-delimited path from the web root to the CFC in the MXML.
• Create a named resource for the CFC. Creating this resource is like registering a data source; you then use the
resource name in your XML.
Specify the CFC in the MXML
To specify the CFC in your MXML, use code such as the following:
<mx:RemotObject
id="myCfc"
destination="ColdFusion"
source="myApplication.components.User"/>
ColdFusion 9 supports BlazeDS that allows messaging support for ColdFusion. When you install ColdFusion, the
following files are added to the /WEB-INF/flex directory:
• remoting-config.xml
• messaging-config.xml
• services-config.xml
• proxy-config.xml
The destination
ColdFusion
the wildcard,
. For more information about the changes in Flash Remoting for ColdFusion 9, see
*
configuration files for Flash Remoting in ColdFusion 9 and ColdFusion
-services=
is preconfigured in remoting-config.xml. The default source value for this destination is
Last updated 8/5/2010
followed by the absolute path to the services-config.xml
9.0.1.
621
Changes in the XML

Advertisement

Table of Contents
loading

Table of Contents