打印本文 打印本文 关闭窗口 关闭窗口
JSP+JDBC(Thin模式)连接Oracle
作者:武汉SEO闵涛  文章来源:敏韬网  点击数1698  更新时间:2009/4/23 10:55:12  文章录入:mintao  责任编辑:mintao
"无法关闭连接池" + name+"中的连接");
}
}
freeConnections.removeAllElements();
}

/**
* 创建新的连接
*/
private Connection newConnection() {
Connection con = null;
try {
con = DriverManager.getConnection(URL+dbInfo);
log("连接池" + name+"创建一个新的连接");
}
catch (SQLException e) {
log(e, "无法创建下列URL的连接: " + URL);
return null;
}
return con;
}


}
}

上一页  [1] [2] 

打印本文 打印本文 关闭窗口 关闭窗口