I was thinking along the lines of "your Flex2 Assembler would be implemented as a façade to your CS-managed model", but let us know how you fare!
On 7/10/06, Nathan Drury <[EMAIL PROTECTED]> wrote:
Thanks everyone. So it seems that I should be able to create a façade to interact with the Flex 2 assemblers. I'll be giving this a go within the next couple of weeks and will update this post with my findings. Cheers Nathan -----Original Message----- From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of João Fernandes Sent: Monday, 10 July 2006 5:07 PM To: [email protected] Subject: RE: [coldspring-dev] Coldspring, CF 7.0.2 and Flex 2 - how do you make them work nicely together? Dave, The FDS assembler can see the application scope with no problem. The assembler is just a normal cfc with 4(or 5) methods. Fill,sync,count,getItem (and fill-contains). There are requirements for input parameters and returntypes but inside of each function you can use whatever you want. João Fernandes -----Original Message----- From: [email protected] on behalf of Dave Ross Sent: Mon 10-Jul-06 3:46 AM To: [email protected] Subject: [coldspring-dev] Coldspring, CF 7.0.2 and Flex 2 - how do you make them work nicely together? From a cursory glance, the assembler looks just like a thin Facade - couldn't it be written like the regular "remote facade" approach we've shown in the examples (and Nathan mentioned). Am I missing something about the requirements of a FDS assembler? Can it not see the application scope (in order to find a CS BeanFactory)? -Dave On 7/9/06, Simeon Bateman <[EMAIL PROTECTED]> wrote: > In order to return your Reactor objects to flex 2 you will need to add some > cfproperty tags to the database specific To object you are returning. > > I think it was Jaos on the reactor list that created an Assembler for use > with Reactor, so i assume something similiar could be written for CS but i > am not aware of that having happened yet. But I assume it would be > something simiar to how the remotebeanfactory works now, in the CS would > generate it for you. > > But Flex and Coldspring work perfectly happily. You are looking at one > peice of the Flex Data Services product that is not CS happy at this point. > But I dont suppose there is anything stopping that from being done :) > > HTH > > simeon > > > On 7/9/06, Nathan Drury <[EMAIL PROTECTED]> wrote: > > > > > > > > > > Hi > > > > I' m developing a Flex 2 app that uses CF 7.0.2 at the back-end. I 'm > going to outline my strategy for doing this and would appreciate any > comments on whether you think I 'm taking the right approach or not. > > > > For some things we intend on using <mx:RemoteObject to directly interact > with CFCs. Since Coldspring requires the use of the beanFactory to work I > 'm going to create a ServiceLayer / Façade that will then use Coldspring to > interact with the underlying Gateways. This SL/F will be like the > Coldspring Remoting feedviewer-remote example' s remoteFacade.cfc, however I > don 't think it will need to make use of the flashMappings / > flashUtilityService as CF 7.0.2 should take care of this automatically. > > > > The major problem I can 't resolve is whether Coldspring can be used with > the Flex Data Service Assembler. As calls from the Flex client using the > FDS Assembler makes a call to Flex DS rather than directly to ColdFusion, I > can 't see how Coldspring could be used here. Please tell me I' m wrong. > > > > If anyone has any additional advice on how to get Flex, CF and Coldspring > to play nicely, I ' d love to here it. > > > > Regards > > > > Nathan Drury > > > > Systems Analyst / Developer > > > > Tourism Queensland - ICT > > > > ( +61 7 3535 5037 > > > > > >
