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 Fri, 27 Feb 2004 00:06:08 GMT
Yes, but I have to disclaim that I have not used pooled services yet. 
Although I don't see why the proxy can't get a service from the pool.

-Harish

Geoff Longman wrote:

>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
>
>
>  
>

---------------------------------------------------------------------
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