I am developing servlets with JDBC API to access my database. In order to ensure that the database connection is created only once for the threads of a servlet, where or when should I Class.forName() and DriveManager.getConnection()? Should I override the construction method of (e.g.) HttpServlet and do them there?

Reply via email to