tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mikolaj Rydzewski <m...@ceti.pl>
Subject RE: DBCP abandoned trace - unable to understand the leak
Date Thu, 04 Nov 2010 15:41:53 GMT

 On Thu, 4 Nov 2010 10:37:25 -0500, "Propes, Barry L " 
 <barry.l.propes@citi.com> wrote:
> Not sure if it matters or not, but in your   SponserSummaryDAO
> method, it appears you establish the rs as null, but don't ever close
> it? You might specifically try that.
>
> And is it necessary to reassign all those variables (connection, rs,
> pstmt) to null again in those catch blocks?

 One more reason to use well designed utilities like commons-dbutils or 
 jdbc-template.

-- 
 Mikolaj Rydzewski <miki@ceti.pl>

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


Mime
View raw message