commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rodney Waldhoff <rwaldh...@apache.org>
Subject Re: [POOL] When to call passivateObject() vs destroyObject()
Date Thu, 13 Mar 2003 01:50:00 GMT
On Wed, 12 Mar 2003, Quinton McCombs wrote:

> From reading the docs on PoolableObjectFactory, it appears that if an
> object is going to be destroyed, there is no reason to call
> passivateObject() first.  Is this correct?
>

Correct.  The idea is that passivateObject(x) prepares 'x' to be stored
within the pool.  If your intention is to destroy an object, there is no
need to passivate it first.

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