Peter, Awesome advice, yes, I've found several reasons I'd rather do it programatically. Thanks! But... my question still remains.... what channel(s), adapter(s), and destination setting(s) do I use (xml or programatically) to have my Flex client, served from an FDS server, call ROs on a paralell CF Ent server?
Darren >From: "Peter Farland" <[EMAIL PROTECTED]> >Reply-To: [email protected] >To: <[email protected]> >Subject: RE: [flexcoders] FDS to CF RemoteObject >Date: Thu, 15 Mar 2007 13:32:43 -0700 > >In FDS 2.0.1 and CF 7.0.2 I would use the services-config.xml for the >new Flex Data Management stuff, and just programmatically create a >ChannelSet for my RemoteObject and avoid channel configuration for this >simpler use case. For RPC services like RemoteObject, compiling against >a config file is only meant to be a convenience so that the compiler >will generate some code for you to create a matching ChannelSet for a >destination... you can always just do this yourself in ActionScript. > >Pete > >________________________________ > >From: [email protected] [mailto:[EMAIL PROTECTED] On >Behalf Of Darren Houle >Sent: Thursday, March 15, 2007 3:56 PM >To: [email protected] >Subject: [flexcoders] FDS to CF RemoteObject > > > >I have built a Flex app that loads from the CF server and successfully >calls >a RemoteObject (CFC) back on that same CF server. I'm using the basic >"ColdFusion" destination in the services-config.xml which looks like... > ><channels> ><channel-definition id="my-cfamf" >class="mx.messaging.channels.AMFChannel"> ><endpoint >uri="http://{server.name}:{server.port}/{context.root}/flex2gateway/" >class="flex.messaging.endpoints.AMFEndpoint"/> ><properties> ><polling-enabled>false</polling-enabled> ><serialization> ><instantiate-types>false</instantiate-types> ></serialization> ></properties> ></channel-definition> ></channels> > ><services> ><service id="coldfusion-flashremoting-service" >class="flex.messaging.services.RemotingService" >messageTypes="flex.messaging.messages.RemotingMessage"> ><adapters> ><adapter-definition id="cf-object" >class="coldfusion.flash.messaging.ColdFusionAdapter" default="true"/> ></adapters> ><destination id="ColdFusion"> ><channels> ><channel ref="my-cfamf"/> ></channels> ><properties> ><source>*</source> ><access> ><use-mappings>false</use-mappings> ><method-access-level>remote</method-access-level> ></access> ><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> ></properties> ></destination> ></service> ></services> > >That works fine, but I have just installed FDS w/integrated Jrun on the >same >physical box CF Enterprise is running on. What I need to do is move this > >Flex app to the newly installed FDS server so that I can add Data >Management >functionality to the app, but I want the app to also continue using that > >existing RemoteObject call. I realize I can't use the same CF channel or > >service definitions in the FDS services-config.xml, but what do I use? >I've >tried many unsuccessful combinations including... > ><channels> ><channel-definition id="cf-amf" >class="mx.messaging.channels.AMFChannel"> ><endpoint uri="http://localhost/{context.root}/messagebroker/amf" >class="flex.messaging.endpoints.AMFEndpoint"/> ><properties> ><polling-enabled>false</polling-enabled> ></properties> ></channel-definition> ></channels> > ><services> ><service id="remoting-service" >class="flex.messaging.services.RemotingService" >messageTypes="flex.messaging.messages.RemotingMessage"> ><adapters> ><adapter-definition id="java-object" >class="flex.messaging.services.remoting.adapters.JavaAdapter" >default="true"/> ></adapters> ><default-channels> ><channel ref="cf-amf"/> ></default-channels> ><destination id="TransferCenterAuth"> ><properties> ><source>*</source> ><scope>request</scope> ></properties> ></destination> ></service> ></services> > >Is there a simple solution for using RO's in FDS when redirecting them >to a >parallel CF server, or do I have to set up all kinds of complicated >channels, destinations, and messaging gateways on both servers just to >call >a RO? > >Thanks! > >Darren > > > >

