Cairngorm Store Example Updated to Cairngorm 2.1

Posted on October 31, 2006 | 4 comments

I went ahead and updated the Cairngorm Store example to Cairngorm 2.1. You can find the original example code download on

Get the updated code here.

Here is my short list of changes:

  1. Changed to mx.rpc.IResponder
  2. Changed com.adobe.cairngorm.commands.Command to com.adobe.cairngorm.commands.ICommand
  3. Changed com.adobe.cairngorm.vo.ValueObject to com.adobe.cairngorm.vo.IValueObject
  4. Deleted result and fault handlers on RemoteObjects components in the Services.mxml file.
  5. Used Call.addResponder( responder ) instead of resultHandler and faultHandler
  6. Changed onResult/onFault to result/fault
  7. Changed getService to getRemoteObject

Along with this update I have been updating the RemoteObjectAMF0 and got it working with the Cairngorm Store example. I’ll package the changes and PHP example up as a separate download, get more details in a future post.

  • Tom Chiverton

    Are all those changes ones that have to be made, or just best practice changes ?

  • Renaun Erickson

    They are ones that are encouraged, but since the other methods are just deprecated you could still use them.

  • Jeremy Sanders

    I am wondering how does one implement Data management services in the new cairngorm model. I see that now the service locator can handle DataServices, but not how using the abstraction of the command calling the delegate which calls the service without result of fault being declared, I dont understand how to deal with result or fault if I need to.

    Please advise!

  • Renaun Erickson

    If I remember Steven Websters MAX session correctly then Cairngorm 2.1 has classes to help with Data Management services. The Service Locator was extended to have a Consumer, MessageAgent and Producer. You wont have a Delegate but will bind to the Model directly. Well thats the quick gross overview, so take it for what its worth. Hopefully they will explain more or release the slides from his session.

  • Pingback: Easy coding to understanding Cairngorm « Justin J. Moses : Blog