how can i close the resultSet, prepareStatement, conn in several methods below to avoid rs close and connection pool getting jammed
问题 the whole data operation is below. i want to close close each and every resource without interfering with the next connection. should i change the constructor to a connection() mthod then have a disconnect() mthod, but after doing so where should i public class DataBean{ private Connection conn = null; private ResultSet res = null; private InitialContext context; private DataSource datasource; private Statement stmt=null; private java.sql.PreparedStatement prepar = null; private java.sql