From: DJ G. <dj...@op...> - 2007-08-27 07:00:51
|
Hello, Anyone know off the top of their head how to get C3P0 to close all of its open connections? I'm working on C3P0ConnectionFactoryTest and getting it to use temporary databases (with PopulatedTemporaryDatabaseTestCase) and it is keeping connections open (I assume in it's cache), even after I call close() on the Connection, close() on the C3P0ConnectionFactory, and even close() and close(true) on the ComboPooledDataSource within the factory. This wouldn't be a problem, except the test is failing because the tearDown() method can't delete the test databases because something is still connected. ;-) If I never call getConnection() on the C3P0ConnectionFactory I'm in good shape because no connections are never opened, but I would like to test connecting to the database. djg |