What he means is to copy the channel section from the
C:\fds2\resources\config\services-config.xml file:
<!-- ColdFusion specific RTMP channel -->
<channel-definition id="cf-dataservice-rtmp"
class="mx.messaging.channels.RTMPChannel">
<endpoint uri="rtmp://{server.name}:2048"
class="flex.messaging.endpoints.RTMPEndpoint"/>
<properties>
<idle-timeout-minutes>20</idle-timeout-minutes>
<serialization>
<!-- This must be turned off for any CF channel -->
<instantiate-types>false</instantiate-types>
</serialization>
</properties>
</channel-definition>
<!-- ColdFusion specific HTTP channel -->
<channel-definition id="cf-polling-amf"
class="mx.messaging.channels.AMFChannel">
<endpoint
uri="
http://{server.name}:{server.port}/{context.root}/messagebroker/cfamfpolling"class="flex.messaging.endpoints.AMFEndpoint"/>
<properties>
<serialization>
<!-- This must be turned off for any CF channel -->
<instantiate-types>false</instantiate-types>
</serialization>
<polling-enabled>true</polling-enabled>
<polling-interval-seconds>8</polling-interval-seconds>
</properties>
</channel-definition>
To the file
C:\fds2\jrun4\servers\default\samples\WEB-INF\flex\services-config.xml.
The resources directory contains just templates for
development, the samples
directory is a fully-deployed flex app.
Jorge Hernandez
"watsonValu" <webforumsuser@macromedia.com> wrote in
message
news:ecqda7$cnr$1@forums.macromedia.com...
> Hi, I am having problems with Tom Jordahl's article on
'Using ColdFusion
> with
> Flex ? Part 1: Creating and running a contact manager
application' found
> on
> link
> '
http://www.adobe.com/devnet/flex/articles/coldfusionflex_part1_02.html'> I do not understand his instruction. In step 4, it
states:
> "Copy the channel definition from the example Flex
configuration files
> found
> in resources/config (default location:
C:\fds2\resources\config\). "
> In that folder, I have the following files:
data-management-config.xml,
> messaging-config.xml, proxy-config.xml,
remoting-config.xml. So which file
> in
> this folder am I supposed to copy from. And where am I
supposed to paste
> it to?
> Is it into WEB-INF/services-config.xml file ?
> When I ran the test,
>
http://localhost:8700/samples/dataservice/cfcontact/contactmgr.mxml,I get
> the
> following errors:
> 4 Errors found.
> Error /dataservice/cfcontact/contactmgr.mxml:31
> Definition samples.contact could not be found.
> 30: import mx.rpc.events.*;
> 31: import samples.contact.*;
> 32:
>
> I am very new at Flex and trying hard to understand this
sw. Can someone
> pse
> help. Thanks a million.
>
>