You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user-java@ibatis.apache.org by Lucie Chan <lu...@hotmail.com> on 2005/01/08 03:38:19 UTC

Closing existing connections in Tomcat's connection pool?

I'm using Tomcat's connection pooling feature with Ibatis's SQLMap to manage 
database access in my application.  Does anyone know of a way to close the 
connections in the connection pool without restarting Tomcat?  I want to 
drop all the existing connections in the pool when the application is 
reloaded by implementing this in ServletContextListener's contextDestroyed() 
method, but I can't figure out a way to retrieve the connections.

----
Lucie



Re: Closing existing connections in Tomcat's connection pool?

Posted by Larry Meadors <la...@gmail.com>.
Have you read this:

http://issues.apache.org/bugzilla/show_bug.cgi?id=21182

Larry

On Fri, 07 Jan 2005 21:38:19 -0500, Lucie Chan <lu...@hotmail.com> wrote:
> I'm using Tomcat's connection pooling feature with Ibatis's SQLMap to manage
> database access in my application.  Does anyone know of a way to close the
> connections in the connection pool without restarting Tomcat?  I want to
> drop all the existing connections in the pool when the application is
> reloaded by implementing this in ServletContextListener's contextDestroyed()
> method, but I can't figure out a way to retrieve the connections.