Adobe 38043740 - ColdFusion Standard - Mac Development Manual page 628

Developing applications
Hide thumbs Also See for 38043740 - ColdFusion Standard - Mac:
Table of Contents

Advertisement

DEVELOPING COLDFUSION 9 APPLICATIONS
Flex and AIR Integration in ColdFusion
<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:
Element
destination id
channels
channel-ref
source
access
The following table lists the XML attributes for services-config.xml:
Elements
channel-definition id
coldfusion
access
use-mappings
method-access-level
Description
The
destination
attribute that the MXML mx:RemoteObject tag must specify to access the
CFC.
A container for one of more child
channel
access the ColdFusion server.
Reference to the channel-definition id specified in the services-config.xml file.
The dot-delimited file path to the CFC, from the cfWebRoot, or, if the use-
true,
an entry in the ColdFusion Administrator Mappings page.
Properties that control how the CFC is accessed on the ColdFusion server.
Description
Channel definition
Contains tags to set access levels, mappings to find CFCs, access to public or remote methods.
define the resolution rules and access level of the CFC being invoked
Use the ColdFusion mappings to find CFCs, by default only CFC files under your web root can be
found.
Allow "public and remote" or just "remote" methods to be invoked
Last updated 1/20/2012
attributes specifying the AMF channels to use to
mappings
623
property is

Advertisement

Table of Contents
loading

This manual is also suitable for:

Coldfusion 9

Table of Contents