in the init() method of your servlet.
 
liwen
----- Original Message -----
From: Xu Jianwu
Sent: Monday, May 22, 2000 1:23 PM
Subject: Servlet with JDBC

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