Code is worth a thousand words - Flex/CF FDS vs. FR Application.

They say a picture is worth a thousand words and I figure some code is too (ok maybe 500 words, but who is counting).

To help understand how an application that uses FDS works compared to Flash Remoting, I've taken a Flash Remoting application and re-written it use FDS instead. Hopefully this will help you understand the differences in an application written with either. and give you a real-world example to use as you are trying to understand and write your own FDS application.

This application (the FlashRemoting version) was originally created using the ColdFusion/Flex Application wizard, which is part of the ColdFusion eclipse plugins that ship with FlexBuilder.

To really see FDS in action, open the FDS app in two browsers. Edit one item (but don't save it) and edit the same item in the 2nd browser and save it. You should see a conflict resolution popup appear in the first item.

Download:
Flash Remoting Application
Flex Data Services Application

To use,
1) unzip both applications to your webroot
2) add this destination to you Flex FDS server "data-management-config.xml"

<destination id="ARTISTS">
<adapter ref="coldfusion-dao"/>
<channels>
<channel ref="cf-dataservice-rtmp"/>
<channel ref="cf-polling-amf"/>
</channels>

<properties>
<component>FDSApp.components.cfgenerated.artists.ARTISTSAssembler</component>
<scope>application</scope>

<metadata>
<identity property="ARTISTID"/>
</metadata>
</properties>
</destination>
2) run the {app}/bin/main.html

Comments
Israel Gaytan's Gravatar Hello, could you talk more about the main differences between flash remoting a fds.....sorry may be i am a little bit stu....but flash remoting has the amf format which is very powerfull, and fds which format handles ???.Could you be more explicit in words for explain me, and by the way is this the final of flash remoting ???

Thanks a lot

Regards Israel Gaytan
# Posted By Israel Gaytan | 8/21/06 11:45 PM
BlogCFC was created by Raymond Camden. This blog is running version 5.9.001.