I have a very simple application template which includes an embedded apache derby database through hibernate.
I have the following configuration:
A more concise version of the accepted answer that did the trick for me
for (Object o : C3P0Registry.getPooledDataSources()) { try { ((PooledDataSource) o).close(); } catch (Exception e) { // oh well, let tomcat do the complaing for us. } }