tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Parsons Technical Services" <parsonstechni...@earthlink.net>
Subject Re: How to release connections in connection pool during reload?
Date Sat, 08 Jan 2005 12:03:47 GMT
Are you using a global pool or is the pool just for that app?

If global, this will kill the connections for all the apps. Not something 
you want to do in production but will be fine in development.

So remember to remove this before going live, if global.

That is what I get for reading while asleep, I missed that you were seeing 
this from the DB server. So my original post doesn't apply. Sorry about 
that.

Doug

----- Original Message ----- 
From: "Lucie Chan" <lucie_chan@hotmail.com>
To: <tomcat-user@jakarta.apache.org>
Cc: <bronco_fan_no1@yahoo.com>
Sent: Saturday, January 08, 2005 2:58 AM
Subject: How to release connections in connection pool during reload?


> Dustin,
>
> Thanks!  You''ve helped me to solve a prloblem that I've been struggling 
> with for days.
>
> ---
> Lucie
>
> Date: Fri, 7 Jan 2005 22:08:20 -0800 (PST)
> From: Dustin <bronco_fan_no1@yahoo.com>
> Subject: How to release connections in connection pool during reload?
> Content-Type: text/plain; charset=us-ascii
>
>
> In your servlet's destroy() method (I am using Struts
> and plugins, and use the plugin's destroy() method),
> add the following code:
>
> ((BasicDataSource) ds).close();
>
> That is assuming your data source is named 'ds'. This
> will close all connections.
>
> Dustin
>
>
>
> ---------------------------------------------------------------------
> 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