Not Tomcat's fault: 

Are you using dbcp? If yes, then just make sure that you explicitly
close your connection after using it, preferable in a try /  finally 

If not, then start using a database connection pool, like the one that
comes with Tomcat.

Hope this helps.
Paul



On Mon, 2003-03-17 at 15:33, apachep2 wrote:
> I start my app using a Servlet. When I shut down Tomcat, this Servlet is
> called. In fact, Servlet's detroy method is called. In Servlet's destroy
> method, I free up the db connections and do some other resource cleanup.
> 
> -----Original Message-----
> From: Kapil Sharma [mailto:[EMAIL PROTECTED] 
> Sent: March 16, 2003 6:03 PM
> To: Tomcat Users List
> Subject: tomcat not releasing db connections
> 
> Hi,
> I am using the default setting of tomcat with apache 1.3.27. Tomcat does
> not
> release the db connections. I have keepalive on in my apache settings.
> Are they related in some way to create this problem?
> 
> kapil
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
-- 
p niemandt <[EMAIL PROTECTED]>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to