Expand my Community achievements bar.

Enhance your AEM Assets & Boost Your Development: [AEM Gems | June 19, 2024] Improving the Developer Experience with New APIs and Events

Deployed Flex application not using secure Coldfusion Channel


Level 2

I have a flex application that is using the secure coldfusion channel in development, and it works fine.  I checked it through firebug and it's definitely calling the https URL for the flexgateway.  I am using the -services option in the compiler to use the services-config.xml.

When I move the flex application to the production machine, for some reason it reverts to using the non secure channel with the http protocol.  I tried a clean project build, but it still happens.  Below I'm posting my services-config and remote-config files to see if anyone can figure out anything.  Thanks, Jim.


        <adapter-definition id="cf-object" class="coldfusion.flash.messaging.ColdFusionAdapter" default="true"/>
        <adapter-definition id="java-object" class="flex.messaging.services.remoting.adapters.JavaAdapter"/>

        <channel ref="my-cfamf-secure"/>

    <destination id="ColdFusion">
            <channel ref="my-cfamf-secure"/>
            <!-- define the resolution rules and access level of the cfc being invoked -->
                <!-- Use the ColdFusion mappings to find CFCs, by default only CFC files under your webroot can be found. -->
                <!-- allow "public and remote" or just "remote" methods to be invoked -->

                <!-- cfc property names -->
                <!-- Query column names -->
                <!-- struct keys -->


<channel-definition id="my-cfamf-secure" class="mx.messaging.channels.SecureAMFChannel">
            <endpoint uri="https://{server.name}:{server.port}{context.root}/flex2gateway/cfamfsecure" class="flex.messaging.endpoints.SecureAMFEndpoint"/>

1 Reply


Level 2

I figured out the problem.  You have to Export the release build for the project and use that version of the swf.  I was using the version built by default when you work on the project.  Don't quite know what the difference is, but it works now.