You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Jin Kim <ji...@yahoo.com> on 2008/04/28 21:31:47 UTC

removeAbandonedTime in DBCP DataSource

Hello, 

In Tomcat documentations, the removeAbandonedTime¡¯
attribute is the number of seconds a dB connection has
been idle before it is considered abandoned.

Is the idle time calculated since the connection was
borrowed from the pool? Or, is it calculated from the
last time the connection has been used such as any Sql
statement executions?

I hope the answer be the latter, but would appreciate
if anyone can clarify.

Thanks,

Jin Kim



      ____________________________________________________________________________________
Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: removeAbandonedTime in DBCP DataSource

Posted by Christopher Schultz <ch...@christopherschultz.net>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Jin,

Jin Kim wrote:
| In Tomcat documentations, the removeAbandonedTime¡¯
| attribute is the number of seconds a dB connection has
| been idle before it is considered abandoned.
|
| Is the idle time calculated since the connection was
| borrowed from the pool?

I would imagine so, but your best bet is to ask the folks at commons
DBCP (the original authors) or just download the source code and take a
look.

| Or, is it calculated from the
| last time the connection has been used such as any Sql
| statement executions?
|
| I hope the answer be the latter, but would appreciate
| if anyone can clarify.

You could always write your own implementation of ObjectPool that
enforces the rules you prefer wrt abandonment.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkgWKkAACgkQ9CaO5/Lv0PB8ZACgufaeoSDECZONo52fNLYavAwj
V0MAoLd6RdGY41xBibSWKwrP0jVJaTvj
=nZRX
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org