How to support HTTPS communication between SWF and BlazeDS when used AMF protocol.
Services-config.xml
-------------------
1. Place the below in services tag.
<default-channels>
<channel ref="my-secure-amf"/>
</default-channels>
2. Place below in channels tag.
<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>
Important Note:
===============
"add-no-cache-headers" will solve problems when used in Internet Explorer.
For File download/ Image previews mention below:
Comment the below
//response.setHeader("Cache-Control","no-cache"); //HTTP 1.1
//enable max-age = 0
response.setHeader("Cache-Control", "max-age=0");
//prevents caching at the proxy server
Monday, June 29, 2009
Subscribe to:
Posts (Atom)