Thanks Steven,

Perhaps my problem is that I wasn't able to utilize the 
services.mxml as Cairngorm intended.  I'm using webServices.  Since 
I couldn't find a working example of how to invoke different web 
service operations from the delegate (with paramaters), I decided to 
use an AS class to make the remote call.  As a side note, I like 
this approach a little better, since I dont have to hard code the 
paramater tags in the service (one less place to maintain the VO). I 
simply pass the VO to the service.  Since I diverged from Cairngorm 
at that point, I wasn't able to get the Responder to work.  This may 
be where I went wrong.  Since I added event listeners to the web 
service class from the delegate, instead of passing the event 
listeners through with a responder, the listeners persisted.  I 
could manually remove the event listeners, but wouldn't a delegate 
instance still exist for each call; thus representing a memory 
leak?  Do you have a better suggestion for this?  I would like to 
keep the application as pure Cairngorm if possible.  As a side note, 
thank you very much for your 6-part article.  It was a hard learning 
curve, but well worth it.

Regards,
Tim Hoff


--- In [email protected], "Steven Webster" <[EMAIL PROTECTED]> 
wrote:
>
> We've never made delegates singletons - since typically these are
> reusable proxies to server-side business logic, and there has 
never been
> a need to have the "same instance of the singleton" between 
different
> command invocations.
> 
> Doesn't mean making a delegate a singleton is wrong; it's
> application-specific I guess, and it's a freedom you have as a 
developer
> using Cairngorm, to make these decisions.
> 
> Best,
> 
> Steven
> 
>        Steven Webster
> Practice Director (Rich Internet Applications)
> Adobe Consulting
> Westpoint, 4 Redheughs Rigg, South Gyle, Edinburgh, EH12 9DQ, UK
> p: +44 (0) 131 338 6108
> m: +44 (0) 7917 428 947 
> [EMAIL PROTECTED] 
> 
>  
> 
> > -----Original Message-----
> > From: [email protected] 
> > [mailto:[EMAIL PROTECTED] On Behalf Of Tim Hoff
> > Sent: 17 April 2006 19:08
> > To: [email protected]
> > Subject: [flexcoders] Re: Cairngorm2 Commands and Singletons
> > 
> > Making the delegate a singleton solved the problem.  Thank 
> > you very much for the insight.
> > 
> > - TH
>






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to