188宝金博页面版

  • 图案背景
  • 纯色背景
视图
标记
批注
批注本地保存成功,开通会员云端永久保存 去开通
hlhysh

上传于:2009-12-18

粉丝量:196

该文档贡献者很忙,什么也没留下。


  • 相关
  • 目录
  • 笔记
  • 书签

188宝金博页面版:更多相关文档

  • 一个连接池的例子(来自JIVE)

    星级: 7 页

  • 一个连接池的例子(来自JIVE

    星级: 4 页

  • 一个连接池的例子(来自JIVE)(3) JAVA技术

    星级: 7 页

  • 一个连接池的例子(说明)

    星级: 1 页

  • 一个连接池的例子(说明)

    星级: 2 页

  • 一个连接池的例子_114

    星级: 34 页

  • 改进的多连接算法:Jive

    星级: 3 页

  • 改进的多连接算法_Jive

    星级: 3 页

  • 来自输赢里的一个很经典的例子

    星级: 5 页

  • 来自输赢里的一个很经典的例子

    星级: 6 页

  • 一个螺栓连接模拟例子(包含预紧力)

    星级: 19 页

  • 超连接查询例子

    星级: 2 页

  • mysql内连接和外连接例子

    星级: 8 页

  • 一个好的例子和一个坏的例子

    星级: 2 页

  • 一个实现CC++连接MYSQL数据库的例子 文本文档

    星级: 5 页

暂无目录

点击鼠标右键菜单,创建目录

暂无笔记

选择文本,点击鼠标右键菜单,添加笔记

暂无书签

在左侧文档中,点击鼠标右键,添加书签

188宝金博页面版: 一个连接池的例子(来自JIVE)(1)

下载积分: 20

内容提示: 作者: sonymusic email: sonymusic@china. com 日 期: 2001-5-17 11: 32: 45 //文件: DbConnectionDefaultPool. java的第一部分 //请注意看里面注明的一处需要修改连接参数的地方 package com. qingtuo. db. pool; import java. sql. *; import java. util. *; import java. io. *; import java. text. *; import java. util. Date; /*** Default Jive connection provider. It uses the excellent connection pool * available from http: //www. javaexchange. com. This connection provider is a * a good choice unless you can use a con...

文档格式:TXT | 页数:6 | 浏览次数:152 | 上传日期:2009-12-18 12:27:34 | 文档星级:
作者: sonymusic email: sonymusic@china. com 日 期: 2001-5-17 11: 32: 45 //文件: DbConnectionDefaultPool. java的第一部分 //请注意看里面注明的一处需要修改连接参数的地方 package com. qingtuo. db. pool; import java. sql. *; import java. util. *; import java. io. *; import java. text. *; import java. util. Date; /*** Default Jive connection provider. It uses the excellent connection pool * available from http: //www. javaexchange. com. This connection provider is a * a good choice unless you can use a container-managed one. */ public class DbConnectionDefaultPool extends DbConnectionProvider { private static final String NAME = "Default Connection Pool"; private static final String DESCRIPTION = "The default connection provider " + "that uses the connection pool from javaexchange. com. It works with " + "almost any database setup, is customizable, and offers good performance. " + "Use this connection provider unless you have your own or can use a " + "container managed connection pool. "; private static final String AUTHOR = "CoolServlets. com"; private static final int MAJOR_VERSION = 1; private static final int MINOR_VERSION = 0; private static final boolean POOLED = true; private ConnectionPool connectionPool = null; private Properties props; private Properties propDescriptions; private Object initLock = new Object() ; public DbConnectionDefaultPool() { //this. manager = manager; props = new Properties() ; propDescriptions = new Properties() ; //Initialize all property values initializeProperties() ; //Load any existing property values loadProperties() ; } /*** Returns a database connection. */ public Connection getConnection() { if (connectionPool == null) { //block until the init has been done synchronized(initLock) { //if still null, something has gone wrong if (connectionPool == null) { System. err. println("Warning: DbConnectionDefaultPool. getConnection() was " + "called when the internal pool has not been initialized. ") ; return null; } } } return new ConnectionWrapper(connectionPool. getConnection() , connectionPool) ; } /*** Starts the pool. */ protected void start() { //acquire lock so that no connections can be returned. synchronized (initLock) { //Get properties String driver = props. getProperty("driver") ; String server = props. getProperty("server") ; 第 1 页

188宝金博页面版:关注我们

  • 新浪微博

关注188宝金博页面版公众号

188宝金博页面版
阅读
APP
阅读
返回
顶部
188宝金博页面版官网登录在线平台入口(2026已更新)—江苏协昌电子科技股份有限公司