where to close DBconnection in struts..urgent..please help
posted 12 years ago
I have DAO.java, DAOManager.java for database transactions in my application. I am using STRuts1.1, eclipse,j2sdk1.4.2, MySql, Tomcat 5.0 where do I close the database connection .. Is it in DAO class...inside the methods for the transactions. 1.if I do this...I am getting exception saying connection is closed in daomanager. 2.if I do this in DAOmanager class....not in DAO.java..then my application hangs up after 3 or 4 transactions......