tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Antony Paul <antonypau...@gmail.com>
Subject Re: Connections not released during reload
Date Thu, 13 Jan 2005 10:55:36 GMT
Write a ServletContextLlistener and in its contextDestroyed() method
use the shutdown() method of the DBCP pool to close connections.

rgds
Antony Paul


On Thu, 13 Jan 2005 11:37:22 +0100, Bernhard Slominski
<bernhard.slominski@zooplus.com> wrote:
> Hi,
> 
> I'm using the following conmfiguration:
> - tomcat 5.0.28
> - Windows 2000
> - Oracle 9i database on Sun Solaris
> 
> I'm using the Tomcat connection pooling dbcp and have the following problem.
> When reloading the applcation, the open connections are not released and
> just stay open on the database forever.
> These connections never die, even though the configuration to remove dead
> connections is enabled.
> 
> I then get a whole set of new connections for the reloaded application.
> Seems the reference to the old connections is just lost.  This only happens
> when reloading the application, not during stop/start.
> 
> Is there a way to fix this (except stop/start of course :-))
> 
> Thanks
> 
> Bernhard
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> 
>

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message