0 Replies Latest reply on Jan 4, 2010 12:09 PM by andrewthorp

    Flex Remoting

    andrewthorp Level 1

      when I am in development, my remoting calls have to go over flex.messaging.endpoints.AMFEndpoint, but in production it has to go over flex.messaging.endpoints.SecureAMFEndpoint.


      My RemoteObject destination is "rubyamf," and my services-config.xml looks like this:



           <service id="rubyamf-flashremoting-service" class="flex.messaging.services.RemotingService"



               <destination id="rubyamf">


                         <channel ref="channel-rubyamf" />

                         <channel ref="channel-rubyamf-secure" />











         <!-- RUBY AMF -->  

        <channel-definition id="channel-rubyamf" class="mx.messaging.channels.AMFChannel">

         <endpoint uri="/app/rubyamf/gateway" class="flex.messaging.endpoints.AMFEndpoint" />






         <!-- SECURE RUBY AMF -->

         <channel-definition id="channel-rubyamf-secure" class="mx.messaging.channels.SecureAMFChannel">

         <endpoint uri="/app/rubyamf/gateway" class="flex.messaging.endpoints.SecureAMFEndpoint" />






      If I use this, will it work for my development and production environments? I don't like having to have to recompile the app each time I want to launch it for production.