
623
DEVELOPING
COLDFUSION 9 APPLICATIONS
Flex and AIR Integration in ColdFusion
Las
t
upda
te
d 8/5/2010
<channel-definition id="my-cfamf" class="mx.messaging.channels.AMFChannel"> <endpoint
uri="http://{server.name}:{server.port}{context.root}/flex2gateway/"
class="coldfusion.flash.messaging.CFAMFEndPoint" />
<properties>
<polling-enabled>false</polling-enabled>
<serialization>
<enable-small-messages>false</enable-small-messages>
</serialization>
<coldfusion>
<access>
<use-mappings>true</use-mappings>
<method-access-level>remote</method-access-level>
</access>
<use-accessors>true</use-accessors>
<use-structs>false</use-structs>
<property-case>
<force-cfc-lowercase>false</force-cfc-lowercase>
<force-query-lowercase>false</force-query-lowercase>
<force-struct-lowercase>false</force-struct-lowercase>
</property-case>
</coldfusion>
</properties>
</channel-definition>
2
Restart the ColdFusion server.
The following table describes the XML attributes for remoting-config.xml:
The following table lists the XML attributes for services-config.xml:
Element
Description
destination id
The
destination
attribute that the MXML mx:RemoteObject tag must specify to access the
CFC.
channels
A container for one of more child
channel
attributes specifying the AMF channels to use to
access the ColdFusion server.
channel-ref
Reference to the channel-definition id specified in the services-config.xml file.
source
The dot-delimited file path to the CFC, from the
cfWebRoot
, or, if the use-
mappings
property is
true,
an entry in the ColdFusion Administrator Mappings page.
access
Properties that control how the CFC is accessed on the ColdFusion server.
Elements
Description
channel-definition id
Channel definition
coldfusion
Contains tags to set access levels, mappings to find CFCs, access to public or remote methods.
access
define the resolution rules and access level of the CFC being invoked
use-mappings
Use the ColdFusion mappings to find CFCs, by default only CFC files under your web root can be
found.
method-access-level
Allow "public and remote" or just "remote" methods to be invoked
Содержание COLDFUSION 9
Страница 1: ...Developing Applications ADOBE COLDFUSION 9...