We have a development environment running TomCat (within Eclipse).
We use a connection pool. And everytime we build our app, the context reloads and if we have any existing connections at that point, they do not get cleared up or reused. So, the only way to clear them up right now is to restart TomCat.
As a work around, I was looking into implementing a Context Interceptor where I could put the connection clean up code in the context reload method. I find that TomCat 3 had a BaseInterceptor class in org.apache.tomcat.core. But, I cannot find any Interceptor classes to extend in TomCat5.