commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Phil Steitz <phil.ste...@gmail.com>
Subject Re: [dbcp] query timeout?
Date Mon, 26 Jul 2010 01:49:34 GMT
Paul Libbrecht wrote:
> Hello list,
> 
> could there be a way for me to set a DBCP configuration stopping a query
> if it takes too long?
> Ideally, this should be in the database (MySQL in my case) but I see not
> place to put that in MySQL.

Hi Paul,

Do you mean globally for all queries using connections from the
datasource? If you just need to time out specific queries, DBCP's
DelegatingStatements do implement setQueryTimeOut (delegating to the
driver).

Phil
> 
> thanks in advance
> 
> paul
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
> For additional commands, e-mail: user-help@commons.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
For additional commands, e-mail: user-help@commons.apache.org


Mime
View raw message