Hivemind keep amazing me, but I also realize that I don't know enough of about principles and used techniques behind Hivemind.
Thanks for the help Regards Diego On 8/19/05, Glen Stampoultzis <[EMAIL PROTECTED]> wrote: > Yes, I also find this very handy. Sometimes because of the requirements of > a framework you need to create a long lived object that needs to access a > service that is thread local. > > > On 8/19/05, Hensley, Richard <[EMAIL PROTECTED] > wrote: > > Yes, you've got it. > > > > This has a lot of power that can be exploited in many ways. Service > models, > > especially threaded and pooled, is one of my favorite hivemind features. > > > > Richard > > -----Original Message----- > > From: Diego [mailto:[EMAIL PROTECTED] > > Sent: Thursday, August 18, 2005 2:48 AM > > To: [email protected] > > Subject: Re: Injecting a threaded service into a singleton service > > > > Ok, thats different from what I thought. > > > > Its more like this: if 2 different threads access a singleton service > > and this singleton service uses a threaded service. Then the theads > > calling the singleton both have access to a different instance of the > > threaded service. > > > > Regards, > > Diego > > > > On 8/17/05, James Carman < [EMAIL PROTECTED]> wrote: > > > Correct. The singleton service's implementation will receive a proxy > > > (implementing the service interface of the threaded service) which > > delegates > > > to a thread-local implementation object instance. > > > > > > -----Original Message----- > > > From: Hensley, Richard [mailto:[EMAIL PROTECTED] ] > > > Sent: Wednesday, August 17, 2005 11:57 AM > > > To: [email protected] > > > Subject: RE: Injecting a threaded service into a singleton service > > > > > > If I understand your question correctly, the following will occur: > > > > > > There will on be one instance of the singleton service. > > > > > > There will be an instance per thread for the threaded service. > > > > > > Richard > > > > > > -----Original Message----- > > > From: Diego [mailto:[EMAIL PROTECTED] > > > Sent: Wednesday, August 17, 2005 8:41 AM > > > To: [email protected] > > > Subject: Injecting a threaded service into a singleton service > > > > > > Hello, > > > > > > Is this correct: If I injecting a threaded service into a singleton > > > service there will be only 1 service instance create for the threaded > > > service? > > > > > > Regards, > > > Diego > > > > > > > --------------------------------------------------------------------- > > > To unsubscribe, e-mail: > [EMAIL PROTECTED] > > > For additional commands, e-mail: > [EMAIL PROTECTED] > > > > > > > > > > --------------------------------------------------------------------- > > > To unsubscribe, e-mail: > [EMAIL PROTECTED] > > > For additional commands, e-mail: > [EMAIL PROTECTED] > > > > > > > > > > > > > --------------------------------------------------------------------- > > > To unsubscribe, e-mail: > [EMAIL PROTECTED] > > > For additional commands, e-mail: > [EMAIL PROTECTED] > > > > > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: > [EMAIL PROTECTED] > > For additional commands, e-mail: > [EMAIL PROTECTED] > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: > [EMAIL PROTECTED] > > For additional commands, e-mail: > [EMAIL PROTECTED] > > > > > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
