I'm struggling trying to get our app to communicate over SSL in our production 
environment. 

Environment
--------------
- Flex 2.0.1
- AMF/Remote Objects to Java app
- Load Balancer/SSL accelerator (strips SSL before gets to app server)

Would like to be able to support QA and Production with single build if 
possible. QA could be https, but we want to support http.

remoting-config.xml
-------------------

    <default-channels>                          
        <channel ref="my-secure-amf"/>                  
        <channel ref="my-amf"/>                                         
    </default-channels>

services-config.xml
--------------------

        <channel-definition id="my-amf" 
class="mx.messaging.channels.AMFChannel">               
            <endpoint 
uri="http://{server.name}:{server.port}/{context.root}/messagebroker/amf"; 
class="flex.messaging.endpoints.AMFEndpoint"/>                  
            <properties>
                <add-no-cache-headers>false</add-no-cache-headers>
                <polling-enabled>false</polling-enabled>
             </properties>                      
        </channel-definition>


        <channel-definition id="my-secure-amf" 
class="mx.messaging.channels.SecureAMFChannel">          
            <endpoint 
uri="https://{server.name}:{server.port}/{context.root}/messagebroker/amfsecure";
 class="flex.messaging.endpoints.SecureAMFEndpoint"/>                     
            <properties>
                <add-no-cache-headers>false</add-no-cache-headers>
                <polling-enabled>false</polling-enabled>
            </properties>                       
        </channel-definition>


thoughts/questions?
--------------------

1. Does this configuration work for both http and https for both build and 
runtime? If I need to have two builds, that's fine (not ideal). I would just 
like someone (or have some link) to defines steps a, b, c on what to do in each 
case.

2. From another post, I tried changing the secure endpoint from 
SecureAMFEndpoint to just AMFEndpoint since by the time it hits our server, SSL 
is stripped. However, I received some error saying that I needed to have a 
secure endpoint with a secure (https) URL. 


Any help is appreciated.





Reply via email to