Flex使用Https協議

yunzhongxia發表於2011-08-19

1、https是安全認證協議,所以要採用SecureAMFChannel通道。即

 

    

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

 

2、在remoting-config.xml和proxy-config.xml檔案中開通SecureAMFChannel通道。  

  

   

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

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

 

 

 

相關文章