A little help, if possible?
I just updated to Beta 3. I was excited to upgrade to Beta 3
because last week I finally figured out (or thought I figured out)
how DFS stuff works. I even made 2 or 3 simple FDS Beta 2 apps, and
was showing off to all my friends. (Or just Randy, he's the only
one who caresÂ…)
Anyways, this new fangled Beta 3 is giving me issues, I'm sure I'm
doing something obvious wrong, just can't find it.
To start I have some simple AS:
import mx.collections.ArrayCollection;
import mx.data.DataService;
[Bindable]
public var allStates:ArrayCollection = new ArrayCollection();
public var ds:DataService = new DataService("fds3Test");
public function init():void{ //called by the applications
creationComplete
ds.fill(allStates);
ds.autoCommit = true;
}
The project that this file belongs to have the following compiler
arguments in FB:
-services "C:\fds2\jrun4\servers\default\flex\WEB-INF\flex\flex-
enterprise-services.xml" -locale en_US
That flex-enterprise-services.xml looks just like the default one
that is there, except I added the following between the <channels>
tag:
<!-- 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>
</channels>
And the flex-data-services.xml file in that same directory is as
follows:
<?xml version="1.0" encoding="UTF-8"?>
<service id="data-service"
class="flex.data.DataService"
messageTypes="flex.data.messages.DataMessage">
<adapters>
<adapter-definition id="actionscript"
class="flex.data.adapters.ASObjectAdapter" default="true"/>
<adapter-definition id="java-dao"
class="flex.data.adapters.JavaAdapter"/>
<adapter-definition id="coldfusion-dao"
class="coldfusion.flex.CFDataServicesAdapter"/>
</adapters>
<destination id="fds3Test">
<adapter ref="coldfusion-dao"/>
<channels>
<channel ref="cf-dataservice-rtmp"/>
<channel ref="cf-polling-amf"/>
</channels>
<properties>
<component>dataTest.stateAssembler</component>
<scope>request</scope>
<access>
<method-access-level>remote</method-access-level>
<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>
<metadata>
<identity property="stateID"/>
</metadata>
<network>
</network>
<server>
<fill-method>
<use-fill-contains>false</use-fill-contains>
<auto-refresh>true</auto-refresh>
<ordered>true</ordered>
</fill-method>
</server>
</properties>
</destination>
</service>
When I try to run the application, I get a "The
destination `fds3Test' could not be found", anyone see what I'm
doing wrong? (Sorry this is long, and I'm sure the wrapping will be
all messed up for everyone)
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
SPONSORED LINKS
Web site design development | Computer software development | Software design and development |
Macromedia flex | Software development best practice |
YAHOO! GROUPS LINKS
- Visit your group "flexcoders" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.