Try using the ResourceLimitingPool you can configure it to either throw an exception
or block when a resource is unavailable. Or, you can even specify a max block time.
You can pretty much do everything that is possible with either the Soft or Hard pools.
Take a look at the Javadocs for details.

Cheers,
Leif

Berin Loritsch wrote:

[EMAIL PROTECTED] wrote:

In some circumstances my Poolables are limited resources that should not
exceed a certain number.
Poolables are pooled using a SoftResourceLimitingPool by default. Can this
be changed for certain components?

There is no easy way to do it. However, when I originally worked with the pooling code, I tried
using hard limiting pools. The problem is that if load is great enough you will experience deadlock.
That is why I went with the soft-limiting pool.



---------------------------------------------
Introducing NetZero Long Distance
1st month Free!
Sign up today at: www.netzerolongdistance.com

--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to