commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Geoff Longman" <glong...@intelligentworks.com>
Subject Re: [HIVEMIND] Pooled Services using Pooled Services
Date Thu, 26 Feb 2004 22:40:30 GMT
SO basicly you saying "trust the proxy"?


----- Original Message ----- 
From: "Harish Krishnaswamy" <hkrishnaswamy@comcast.net>
To: "Jakarta Commons Developers List" <commons-dev@jakarta.apache.org>
Sent: Thursday, February 26, 2004 5:15 PM
Subject: Re: [HIVEMIND] Pooled Services using Pooled Services


> Have you tried wiring the two services like you do for the other service 
> models (in the module descriptors, I mean)?
> 
> public class AImpl implements A, PoolManageable
> {
>     private B _b;
> 
>     public AImpl(B b)
>     {
>        _b = b;
>     }
> 
>     public void activateService()
>     {
>        // app specific logic
>     }
> }
> 
> -Harish
> 
> Geoff Longman wrote:
> 
> >How does one setup a Pooled Service that needs to use another Pooled
> >service?
> >
> >In other words I have a Pooled service A that implements PoolManageable.
> >
> >I want to get a reference to another Pooled service B in  A's
> >activateService().
> >
> >AImpl implements PoolManagable {
> >
> > private B _b;
> >
> > public void activateService() {
> >
> >   _b = ????
> >
> > }
> >
> >}
> >
> >Ideas?
> >
> >Geoff
> >
> >Geoffrey Longman
> >Intelligent Works Inc.
> >
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
> >For additional commands, e-mail: commons-dev-help@jakarta.apache.org
> >
> >
> >  
> >
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-dev-help@jakarta.apache.org
> 

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


Mime
View raw message