You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by Geoff Longman <gl...@intelligentworks.com> on 2004/02/26 23:03:48 UTC

[HIVEMIND] Pooled Services using Pooled Services

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


Re: [HIVEMIND] Pooled Services using Pooled Services

Posted by Harish Krishnaswamy <hk...@comcast.net>.
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" <hk...@comcast.net>
>To: "Jakarta Commons Developers List" <co...@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


Re: [HIVEMIND] Pooled Services using Pooled Services

Posted by Geoff Longman <gl...@intelligentworks.com>.
SO basicly you saying "trust the proxy"?


----- Original Message ----- 
From: "Harish Krishnaswamy" <hk...@comcast.net>
To: "Jakarta Commons Developers List" <co...@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


Re: [HIVEMIND] Pooled Services using Pooled Services

Posted by Harish Krishnaswamy <hk...@comcast.net>.
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