commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From haipeng du <>
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
Salt Lake City

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message