Not the case in my experience. If the swf is loaded over SSL and AMF is not setup for SSL in CF land, AMF will go over non-SSL.
Peter, FWIW, I never got this supposed failover to work, maybe others have by now dunno. I manually setup AMFChannel to use SSL in production environments. Note that you have to compile your swf against the proper services-config to do this. What I did was have a services-config for dev, staging, and production environments and had my build scripts use the proper one. YMMV. DK On Jan 3, 2008 10:34 AM, nasawebguy <[EMAIL PROTECTED]> wrote: > Thanks Peter. My assumption was that if I'm loading via https, the > secure channel would be used. If not, the unsecure channel would be used. > > I can try the TraceTarget, but where is the flashlog located? > > Don > > > --- In [email protected] <flexcoders%40yahoogroups.com>, "Peter > Farland" <[EMAIL PROTECTED]> wrote: > > > > > > If you're loading your SWF via HTTPS then you should be able to make > > secure connections from the Flash Player. As for the right channel being > > automatically selected, it depends on whether channel failover happens > > correctly. I didn't see a destination configuration below, but if the > > <channels> snippet represents the list of channels for your destination, > > then I believe it will try to connect using the SecureAMFChannel first > > and fall back to the AMFChannel on failing. While this might be useful > > in development, I wouldn't suggest it for deployment - especially if you > > really do have a requirement to connect to a secure endpoint. > > > > Can you add <mx:TraceTarget /> to your MXML, recompile, and then debug > > or look at flashlog.txt for more information about what might be going > > wrong in the channel connection phase? > > > > > > > > > > > > > > > > > > -----Original Message----- > > From: [email protected] <flexcoders%40yahoogroups.com> [mailto: > [email protected] <flexcoders%40yahoogroups.com>] On > > Behalf Of nasawebguy > > Sent: Wednesday, January 02, 2008 8:45 PM > > To: [email protected] <flexcoders%40yahoogroups.com> > > Subject: [flexcoders] Flex SSL over AMF with ColdFusion > > services-config.xml > > > > When I use smartsniff/Charles, my remoteObject content is not > > encrypted/https/port 443. IE/Firefox shows SSL to the user, eventhough > > the data is NOT actually encrypted over AMF! > > > > Below is my services-config.xml file and remoteObject code snips. > > > > I've been researching this all day with no clear solution. As I > > understand it so far, I should be able to use two channels in my > > ColdFusion destination and the correct channel would be used > > automatically. Not the case. I need https pages to use SSL and http > > pages to not. > > > > I tried splitting them up into two destinations, "ColdFusion" and > > "ColdFusionSecure", in the same services-config, but I keep getting > > errors that ColdFusionSecure cannot be found, when it is used at the > > remoteObject destination. > > > > I'd appreciate any suggestions. > > > > Thanks, > > Don > > > > <channels> > > <channel ref="my-secure-cfamf"/> > > <channel ref="my-cfamf"/> > > </channels> > > > > > > <channel-definition id="my-cfamf" > > class="mx.messaging.channels.AMFChannel"> > > <endpoint > > uri="http://{server.name}:{server.port}/flex2gateway/" > > class="flex.messaging.endpoints.AMFEndpoint"/> > > > > <properties> > > <polling-enabled>false</polling-enabled> > > <serialization> > > <instantiate-types>false</instantiate-types> > > </serialization> > > </properties> > > </channel-definition> > > > > <channel-definition id="my-secure-cfamf" > > class="mx.messaging.channels.SecureAMFChannel"> > > <endpoint > > uri="https://{server.name}:{server.port}/flex2gateway/" > > class="flex.messaging.endpoints.SecureAMFEndpoint"/> > > > > <properties> > > > > <add-no-cache-headers>false</add-no-cache-headers> > > <polling-enabled>false</polling-enabled> > > <serialization> > > <instantiate-types>false</instantiate-types> > > </serialization> > > </properties> > > </channel-definition> > > > > > > <mx:RemoteObject > > id="cfdata" showBusyCursor="true" > > destination="ColdFusion" source="flex.secure.send"> > > <mx:method name="sendUpdate" > > result="sendUpdate_Result(event)" > > fault="sendUpdate_Fault(event)" /> > > </mx:RemoteObject> > > > > > > > > -- > > Flexcoders Mailing List > > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt > > Search Archives: > > http://www.mail-archive.com/flexcoders%40yahoogroups.com > > Yahoo! Groups Links > > > > > -- Douglas Knudsen http://www.cubicleman.com this is my signature, like it?

