Adobe COLDFUSION 9 Manual page 677

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

Advertisement

DEVELOPING COLDFUSION 9 APPLICATIONS
Flex and AIR Integration in ColdFusion
The following diagram shows the process that LiveCycle Data Services ES and ColdFusion use when a Flex application
calls a method in a ColdFusion component:
A Flash client requests data that the LiveCycle Data Management Service adapter handles.
1
Flex calls a
,
,
2
fill
sync
get
3
If you are running LiveCycle Data Services ES remotely, copy the lcds2.6_install/resources/lib/flex-*.jar files to the
<ColdFusion_home>/lib/ directory for a standalone deployment or WEB-INF/cfusion/lib directory for J2EE
deployment.
4
The ColdFusion Data Service adapter sends the request to the LiveCycle Data Services ES assembler. If you are
running LiveCycle Data Services ES remotely, the adapter sends the request by using Java Remote Method
Invocation (Java RMI).
5
The LiveCycle Data Services ES assembler and the ActionScript translator convert ActionScript 3.0 data types to
the appropriate ColdFusion values.
The ColdFusion server runs the
6
appropriate methods in the DAO CFC.
The ColdFusion application creates an array of Value Objects or appropriate return value, which it sends to the
7
ColdFusion server.
The ColdFusion server sends the results to the LiveCycle Data Services ES assembler.
8
9
The LiveCycle Data Services ES assembler and the ActionScript translator convert ColdFusion values to the
appropriate ActionScript 3.0 data types, and then the assembler sends the results to the ColdFusion Data Service
adapter.
The ColdFusion Data Service adapter sends the results to the LiveCycle Data Management Service.
10
The LiveCycle Data Management Service passes the results to the Flash client.
11
Note: The RMI registry, which facilitates communication between the ColdFusion Data Service assembler and the remote
LiveCycle Data Management Service uses port 1099, which is the default port for Java RMI. You can change the port
number by adding -Dcoldfusion.rmiport=1234 to the Java JVM arguments on both the ColdFusion server and the Flex
server.
Application development and deployment process
The following is a typical process for developing and deploying a Flex application that uses the ColdFusion Data
Service adapter and LiveCycle Data Services ES assembler to manage back-end database tasks:
Design your application.
1
, or
method in the Data Service.
count
,
,
, or
fill
sync
get
count
Last updated 8/5/2010
method of the assembler CFC, which runs the
672

Advertisement

Table of Contents
loading

Table of Contents