commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Harish Krishnaswamy <hkrishnasw...@comcast.net>
Subject Re: [HIVEMIND] Pooled Services using Pooled Services
Date Thu, 26 Feb 2004 22:15:29 GMT
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


Mime
View raw message