commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From haipeng du <haipen...@gmail.com>
Subject about connection
Date Thu, 02 Dec 2004 20:17:13 GMT
I use BasicDataSource as my datasource. A connection is created when I
connected to database. Then connection was returned back to connection
pool. But after long time (such as one ten hours), the connection can
be used to connected to database. How could I set some timeout
parameters so that I can check if that connection can not be used , I
just make it to null and create a new connection? Do we have other
ways to solve this problem?
Thanks a lot.

-- 
Haipeng Du
Software Engineer
Comphealth, 
Salt Lake City

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


Mime
View raw message