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

    Flex Remoting

    andrewthorp

      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:

       

      <services>

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

               messageTypes="flex.messaging.messages.RemotingMessage"

               >

               <destination id="rubyamf">

                    <channels>

                         <channel ref="channel-rubyamf" />

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

                    </channels>

                    <properties>

                         <source>*</source>

                    </properties>

               </destination>

          </service>

      </services>

       

      <channels>

       

         <!-- RUBY AMF -->  

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

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

         <properties>

         <polling-enabled>true</polling-enabled>

         </properties>

         </channel-definition>

        

         <!-- SECURE RUBY AMF -->

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

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

         </channel-definition>

       

       

      </channels>

       

      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.