You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avalon.apache.org by Mark Woon <mo...@SMI.Stanford.EDU> on 2002/02/13 08:49:10 UTC
Config syntax for Poolable?
Hi all...
Can anyone point me to anything that might document the config syntax
for Poolable? How do you specify what the min/max number of objects a
Pool should hold? What needs to be done other than using the Poolable
marker interface?
Thanks,
-Mark
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: Config syntax for Poolable?
Posted by Leif Mortenson <le...@silveregg.co.jp>.
Just committed this. Please see the PoolableComponentHandler javadocs
for details.
Leif Mortenson wrote:
> Berin posted a vote the other day to use the ResourceLimitingPool for
> this. If that change is made, then you would be able to get both sets
> of funtionality simply by adding a pool-strict attribute. Blocking
> support could also be added with pool-blocking and pool-block-timeout
> attributes.
>
> Leif
>
> Mark Woon wrote:
>
>> Leif Mortenson wrote:
>>
>>
>>> If your component implements Poolable, this is as simple as adding the
>>> following attributes to your component definition:
>>>
>>> <mycomponent pool-min="1" pool-max="10" pool-grow="1">
>>> <dbpool>my-db</dbpool>
>>> </mycomponent>
>>>
>>
>> Is there a way to specify what kind of Pool the CM should use (eg.
>> HardResourceLimitingPool vs. SoftResourceLimitingPool)?
>>
>> Thanks,
>> -Mark
>>
>>
>> --
>> To unsubscribe, e-mail:
>> <ma...@jakarta.apache.org>
>> For additional commands, e-mail:
>> <ma...@jakarta.apache.org>
>>
>>
>>
>
>
>
> --
> To unsubscribe, e-mail:
> <ma...@jakarta.apache.org>
> For additional commands, e-mail:
> <ma...@jakarta.apache.org>
>
>
>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: Config syntax for Poolable?
Posted by Leif Mortenson <le...@silveregg.co.jp>.
Berin posted a vote the other day to use the ResourceLimitingPool for
this. If that change is made, then you would be able to get both sets
of funtionality simply by adding a pool-strict attribute. Blocking
support could also be added with pool-blocking and pool-block-timeout
attributes.
Leif
Mark Woon wrote:
> Leif Mortenson wrote:
>
>
>>If your component implements Poolable, this is as simple as adding the
>>following attributes to your component definition:
>>
>> <mycomponent pool-min="1" pool-max="10" pool-grow="1">
>> <dbpool>my-db</dbpool>
>> </mycomponent>
>>
>
> Is there a way to specify what kind of Pool the CM should use (eg.
> HardResourceLimitingPool vs. SoftResourceLimitingPool)?
>
> Thanks,
> -Mark
>
>
> --
> To unsubscribe, e-mail: <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>
>
>
>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: Config syntax for Poolable?
Posted by Mark Woon <mo...@SMI.Stanford.EDU>.
Leif Mortenson wrote:
> If your component implements Poolable, this is as simple as adding the
> following attributes to your component definition:
>
> <mycomponent pool-min="1" pool-max="10" pool-grow="1">
> <dbpool>my-db</dbpool>
> </mycomponent>
Is there a way to specify what kind of Pool the CM should use (eg.
HardResourceLimitingPool vs. SoftResourceLimitingPool)?
Thanks,
-Mark
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: Config syntax for Poolable?
Posted by Leif Mortenson <le...@silveregg.co.jp>.
Mark Woon wrote:
>Can anyone point me to anything that might document the config syntax
>for Poolable? How do you specify what the min/max number of objects a
>Pool should hold? What needs to be done other than using the Poolable
>marker interface?
>
If your component implements Poolable, this is as simple as adding the
following attributes to your component definition:
<mycomponent pool-min="1" pool-max="10" pool-grow="1">
<dbpool>my-db</dbpool>
</mycomponent>
Cheers,
Leif
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>