RE: [flexcoders] Re: Cairngorm - always event, always command? Part2

2008-05-04 Thread Jim Hayes
responder.result(summedIntegers); } catch(error:Error) { responder.fault(error.message); } } -Original Message- From: flexcoders@yahoogroups.com on behalf of chigwell23 Sent: Sun 04/05/2008 23:03 To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Cair

[flexcoders] Re: Cairngorm - always event, always command? Part2

2008-05-04 Thread chigwell23
Appreciate any clarification on the following - am converting my previously non -service embedded functions to Cairngorm. Command + Delegate works by the responder calling "result" or "fauLt" in Command. Responder is added to Service, right? So in my banal example of "add 1 + 1", where does the res

Re: [flexcoders] Re: Cairngorm - always event, always command? Part2

2008-05-02 Thread Douglas Knudsen
certainly use the pattern for reading from a SO. Your Command should be clueless if its a SO or RPC call, the Delegate does that job. Consider the case where you switch from storage in your SO to say S3 or a big phat Oracle DB. You only need change your delegate. You can also have a Command tha

[flexcoders] Re: Cairngorm - always event, always command? Part2

2008-05-02 Thread chigwell23
Thanks Jim. With the Delegate and Responder stuff, it seems on the surface that Cairngorm is predisposed to service/backend communication solutions. Taking the example of a function that at the moment is reading Shared object data - how would this be Cairngormed? When the Command code is reached, d