Configuring a destination for the ColdFusion Data
Service Adapter
To ensure that Flex recognizes the Flex Data Service assembler, you add the coldfusion-dao
adapter to the <adapters> section and a destination to the data-management-config.xml file
that is in the WEB-INF/flex folder of the server on which you want to run the Flex
application.
To add the coldfusion-dao adapter, copy the following adapter-definition to the <adapters>
sectoin of the data-management-config.xml file that is in the WEB-INF/flex folder of the
server on which you want to run the Flex application.
<adapter-definition id="coldfusion-dao"
class="coldfusion.flex.CFDataServicesAdapter"/>
The destination contains the following:
A unique ID
■
The name of the adapter to use
■
The channels to use. Flex includes a preconfigured channel, "cf-dataservice-rtmp"
■
The name or path of the assembler CFC
■
The scope, which can be "application", "session", or "request". "Application" specifies that
■
there is only one instance; "request" specifies that there is a new CFC for each call.
ColdFusion does not support "session." (Do not confuse this setting with ColdFuison
variable scope; they are not related.)
(optional) The hostname or IP address of the ColdFusion host. The default is localhost.
■
(optional) Credentials to pass to every client.
■
The access level of the CFC, which can be "public (and remote)" or "remote"
■
Whether to make property names lowercase when converting to ActionScript
■
Whether to make query column names lowercase
■
Whether to make structure keys lowercase
■
The property or list of properties that are the primary key in the database
■
(optional) Network settings
■
(optional) Fill-method settings, which specify whether to update the results of a fill
■
operation after a create or update operation
38
Using the Flex Data Service Assembler