Similar to my question here Spring Tomcat C3P0PooledConnectionPoolManager creates a memory leak I wish to understand why Spring or C3P0 itself not cleaning up the threads it creates on shutdown?
I get the following logs in Tomcat
SEVERE: The web application [/ul-xtrain] appears to have started a thread named [C3P0PooledConnectionPoolManager[identityToken->2wpukr9b7ohfj11xtbfft|725548e3]-AdminTaskTimer] but has failed to stop it. This is very likely to create a memory leak.
I am not interested in solution as I already have working solution based on these threads
Hibernate4 + c3p0 + Derby - Memory Leak on Tomcat stop or web application reload
To prevent a memory leak, the JDBC Driver has been forcibly unregistered
I just wish to understand why Spring is not closing it. Thank you