作者:sonymusic email: sonymusic@ 日期:2001-5-17 11:34:25 //文件: /** * Returns the age of a connection -- the time since it was handed out to * an application. */ public long getAge(Connection conn) { // Returns the age of the connection in millisec. int thisconn = idOfConnection(conn); return () - connLockTime[thisconn]; } private void createConn(int i) throws SQLException { Date now = new Date(); try { (dbDriver); Properties dbProp = new Properties(); //("Creating....."); ("user", dbLogin); ("password", dbPassword); ("characterEncoding","gb2112"); //("useUnicode", "true");
/** * Shuts down the housekeeping thread and closes all connections * in the pool. Call this method from the destroy() method of the servlet. */ /** * Multi-phase shutdown. having following sequence: * <OL> * <LI><code>getConnection()</code> will refuse to return