Logo 
Search:

Java Answers

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds
  Question Asked By: Phil Sanchez   on Sep 25 In Java Category.

  
Question Answered By: Latoya Murray   on Sep 25

I am closing the connection  immeidately with following code in each file

servlet
--------
public void destroy() {
try {if (conn != null) conn.close();} catch (SQLException e) {}
}

jsp
----
public void jspDestroy()
{
try {if (conn != null) conn.close();} catch (SQLException e) {}
}

Please suggest me if any mistake in above code

Share: 

 

This Question has 4 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on Need help on connection pooling in tomcat Or get search suggestion and latest updates.


Tagged: