tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Anton Tagunov <atagu...@mail.cnt.ru>
Subject Re: NullPointerException/Connection pool gets exhausted very quickly
Date Thu, 24 Jul 2003 05:52:45 GMT
Hello Lior!

LS> with conn.close() at the bottom of each page

conn.close() at the bottom not enough, what you need
is

conn= ..
try{
}finally{
  conn.close();
}

LS> and initCtx.close() to release the connections
has nothing to do with closing connections

-Anton


---------------------------------------------------------------------
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