hivemind-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hensley, Richard" <Richard.Hens...@McKesson.com>
Subject RE: Injecting a threaded service into a singleton service
Date Thu, 18 Aug 2005 15:44:43 GMT
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


Mime
View raw message