commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From John Zoetebier <>
Subject DBCP question: what is closing the actual database connection ?
Date Sun, 09 Nov 2003 01:41:13 GMT
I have DBCP example code ManualPoolingDriverExample working just fine.
To test if the connection is indeed pooled I made a loop which opens and 
closes the connection.
The first connection takes about 2500 ms.
Next connections take 1 ms.
This looks pretty good to me.

My worry though is what happens if I shutdown the application.
What is actually closing down the real database connection stored in the 
DBCP pool ?
Do I have to call a method to indicate that the program is shuttinf down ?

John Zoetebier
Web site:

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

View raw message