ColdFusion 9.0 Resources |
About ColdFusion and FlexColdFusion 9 supports LiveCycle Data Services 2.6.1 however the ColdFusion installation does not provide the option to install LiveCycle Data Services. You need to manually install LiveCycle Data Services to use it with ColdFusion. For more information about manually installing LiveCycle Data Services, see Installing LiveCycle Data Services Manually in the Installation Guide. By default, ColdFusion installs BlazeDS which provides messaging support in ColdFusion. For more information about the changes in using Flash Remoting, see Changes in the XML configuration files for Flash Remoting in ColdFusion 9. The LiveCycle Data Services ES assembler lets you use ColdFusion components (CFCs) to provide the back-end data management for a Flex application that uses the Data Management Service. You can run LiveCycle Data Services ES as part of ColdFusion or remotely. If you are running LiveCycle Data Services ES as part of ColdFusion, LiveCycle Data Services ES and ColdFusion communicate directly. If you are running LiveCycle Data Services ES remotely, LiveCycle Data Services ES and ColdFusion communicate by using RMI. The following diagram shows how ColdFusion and LiveCycle Data Services ES interact in both cases: Note: To use the LiveCycle Data Services ES assembler,
the Flex application must be running on Flex Data Services 2.0.1
or LiveCycle Data Services 2.5, although not every feature is supported
in Flex Data Services 2.0.1.
The Flex server includes a ColdFusion Data Service adapter. The adapter processes changes to data to ensure that data on the client is synchronized with back-end data and conversely; it executes the sync, fill, count, and get operations, identifies conflicts, and passes results to LiveCycle Data Services ES. ColdFusion includes the LiveCycle Data Services ES assembler; along with the ActionScript translator, it converts the input arguments where necessary and translates the return values. Note: If you install LiveCycle Data Services ES, ColdFusion
does not map .SWF files. This means that all .SWF files are served
through the ColdFusion web application instead of the web server.
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:
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.
|