Hi Martin & Chris, Thing i actually need is, if a query executed from web application then it shold not execute more then 22mins. If it execute more then that means query shold be cancelled from postgres and java should get exception on this event. Is it possible?
Thanks, Arvind S * "Many of lifes failure are people who did not realize how close they were to success when they gave up." -Thomas Edison* On Tue, Jun 2, 2009 at 2:40 AM, Christopher Schultz < ch...@christopherschultz.net> wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Arvind, > > On 6/1/2009 3:26 PM, S Arvind wrote: > > Is there any possibility to mention max time a query can execute from > DBCP > > side? > > What do you want to happen after the timeout? The connection execute* > method throws an exception? That is going to be very database-specific. > > Martin's response about using removeAbandoned="true" is not going to > help: this will only remove the connection from the connection pool... > it won't interfere with its operation in any way. > > Is there some kind of query you can execute on the client side that will > modify the connection properties? You could make that the > "validationQuery" for your connection. > > - -chris > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.9 (MingW32) > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ > > iEYEARECAAYFAkokQ78ACgkQ9CaO5/Lv0PD8zgCgsdVaJGsaFkz50mO0nkip/uJb > a3IAnA0W6Unug48rmCs94SYa6L5OkGEy > =1LuH > -----END PGP SIGNATURE----- > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > >