![]() |
![]() |
||||
At line 10 changed 1 line. |
A better solution is to use a connection pool, and close connections when you are finished with them. |
A better solution is to use a connection pool (see [DBCP]), and close connections when you are finished with them. This also provides a large performance boost, because connections can be re-used. |
At line 28 changed 1 line. |
This wiki has many examples of using [DBCP] connection pools. |
This wiki has many examples of using Database Connection Pools, using the Apache Commons [DBCP] mechanism which is built into [Tomcat]. |