You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by Ferrari Massimo <ma...@ecofin.ch> on 2003/01/24 12:28:44 UTC

[Pool] multiple instances

Hello,
ist there a way to avoid that the same object instance is returned more than once to the GenericObjectPool?
Thank you!
Massimo


Re: [Pool] multiple instances

Posted by Rodney Waldhoff <rw...@apache.org>.
If you mean "is there a way to make the GenericObjectPool prevent a client
from returning an object to the pool more than once?", then the answer is
not directly, but one could easily build this check into a subclass of
GenericObjectPool.

On Fri, 24 Jan 2003, Ferrari Massimo wrote:

> Hello, ist there a way to avoid that the same object instance is
> returned more than once to the GenericObjectPool? Thank you! Massimo
>