hivemind-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Diego <diego....@gmail.com>
Subject Re: Injecting a threaded service into a singleton service
Date Fri, 19 Aug 2005 09:58:43 GMT
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 <gstamp@gmail.com> 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 <Richard.Hensley@mckesson.com > 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:diego.foo@gmail.com]
> > Sent: Thursday, August 18, 2005 2:48 AM 
> > To: hivemind-user@jakarta.apache.org
> > 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 < james@carmanconsulting.com> 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:Richard.Hensley@McKesson.com ]
> > > Sent: Wednesday, August 17, 2005 11:57 AM
> > > To: hivemind-user@jakarta.apache.org
> > > 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:diego.foo@gmail.com]
> > > Sent: Wednesday, August 17, 2005 8:41 AM
> > > To: hivemind-user@jakarta.apache.org
> > > 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:
> hivemind-user-unsubscribe@jakarta.apache.org
> > > For additional commands, e-mail:
> hivemind-user-help@jakarta.apache.org
> > >
> > >
> > >
> ---------------------------------------------------------------------
> > > To unsubscribe, e-mail:
> hivemind-user-unsubscribe@jakarta.apache.org
> > > For additional commands, e-mail:
> hivemind-user-help@jakarta.apache.org
> > >
> > >
> > >
> > >
> ---------------------------------------------------------------------
> > > To unsubscribe, e-mail:
> hivemind-user-unsubscribe@jakarta.apache.org
> > > For additional commands, e-mail:
> hivemind-user-help@jakarta.apache.org
> > >
> > >
> > 
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> hivemind-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail:
> hivemind-user-help@jakarta.apache.org
> > 
> > 
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> hivemind-user-unsubscribe@jakarta.apache.org 
> > For additional commands, e-mail:
> hivemind-user-help@jakarta.apache.org
> > 
> > 
> 
>

---------------------------------------------------------------------
To unsubscribe, e-mail: hivemind-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: hivemind-user-help@jakarta.apache.org


Mime
View raw message