Adobe 38043740 - ColdFusion Standard - Mac Development Manual page 627

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
You do not have to use the ColdFusion destination if you have configured other valid destinations in the configuration
file. In this case, the destination definition must specify
other than
in remoting-config.xml, then that source definition overrides the source specified in the MXML.
*
For details of defining a destination, see
Create a named resource for a CFC
Edit the WEB-INF/flex/remoting-config.xml file by adding a destination entry for the CFC, for example:
1
<service id="remoting-service" class="flex.messaging.services.RemotingService"
messageTypes="flex.messaging.messages.RemotingMessage">
<adapters>
<adapter-definition id="cf-object"
class="coldfusion.flash.messaging.ColdFusionAdapter" default="true" />
<adapter-definition id="java-object"
class="flex.messaging.services.remoting.adapters.JavaAdapter" />
</adapters>
<default-channels>
<channel ref="my-cfamf" />
</default-channels>
<destination id="ColdFusion">
<channels>
<channel ref="my-cfamf" />
</channels>
<properties>
<source>*</source>
</properties>
</destination>
</service>
The
attribute specifies the dot notation to the CFC from the web root (the classpath to the CFC).
source
The channel-ref tag refers to the channel-definition in the services-config.xml file. In the preceding sample, the my-
cfamf channel-definition has been referenced, which looks similar to the following:
as the value of its
*
Create a named resource for a
Last updated 1/20/2012
element. If you specify a source
source
CFC.
622

Advertisement

Table of Contents
loading

This manual is also suitable for:

Coldfusion 9

Table of Contents