36
Using the Flex Data Service Assembler
About Flex and ColdFusion
The Flex Data Service assembler lets ColdFusion developers use ColdFusion components
(CFCs) to provide the back-end data management for a Flex application that uses the Data
Management Service.
How ColdFusion and Flex interact
The Flex Data Management Service feature lets you configure a Data Management Service
destination, which is the server-side code that you connect to. To use the ColdFusion Data
Service adapter, you specify it in the destination in the Flex Data Service configuration file.
The Flex Data Management Service recognizes the methods:
fill
,
get
,
sync
, and
count
,
which you include in your ColdFusion CFCs.
The following image shows the process that Flex and ColdFusion use when a Flex application
calls a method in a ColdFusion component.
1.
A Flash client requests data that is handled by the Flex Data Management Service.
2.
Flex calls a
fill
,
sync
,
get
, or
count
method in the Data Service.
3.
The ColdFusion Data Service adapter sends the request to the Flex Data Service assembler
by using Java Remote Method Invocation (Java RMI).
4.
The Flex Data Service assembler and the ActionScript translator convert ActionScript 3.0
data types to the appropriate ColdFusion values.
5.
The ColdFusion server invokes the
fill
,
sync
,
get
, or
count
method of the assembler
CFC, which invoke the appropriate methods in the DAO CFC.
6.
The ColdFusion application creates an array of Value Objects or appropriate return value,
which it sends to the ColdFusion server.
NO
TE
To use the Flex Data Service assembler, the Flex application must be running on Flex
Data Services 2.0.