Category Archives: Cairngorm

Switching business delegate implementations at runtime using a delegate factory

I’ve  put together a sample (right-click, view source) to illustrate how you can switch between different implementations of your delegate business logic by using a “BusinessDelegateFactory”-class. The sample itself is deliberately kept drop dead simple, only to focus on what I want to explain. Check out how we switch to a specific delegate implementation by [...]

Also posted in tips | Tagged , , | Leave a comment

Securing Cairngorm services for AMFPHP

Just a really short post about making your Flex website work over HTTPS. Putting your Flex Cairngorm project on SSL is too easy. In services-config.xml, simply replace AMFChannel and AMFEndpoint with SecureAMFChannel & SecureAMFEndpoint.

Example:
<channels>
<channel-definition id=”cf-secure-amf” class=”mx.messaging.channels.SecureAMFChannel”>
<endpoint uri=”https://www.mydomain.com/services/amfphp” class=”flex.messaging.endpoints.SecureAMFEndpoint” />
</channel-definition>
</channels>
A golden rule is not to mix http & https communication to avoid warnings of any kind.
Also [...]

Posted in Cairngorm | Leave a comment