[1]欧阳宏基 葛萌 赵蔷.基于JDBC与设计模式的数据库连接池实现方法[J].计算机技术与发展,2011,(01):84-87.
 OUYANG Hong-ji,GE Meng,ZHAO Qiang.Realization Method of Database Connection Pool Based on JDBC and Design Pattern[J].,2011,(01):84-87.
点击复制

基于JDBC与设计模式的数据库连接池实现方法()
分享到:

《计算机技术与发展》[ISSN:1006-6977/CN:61-1281/TN]

卷:
期数:
2011年01期
页码:
84-87
栏目:
智能、算法、系统工程
出版日期:
1900-01-01

文章信息/Info

Title:
Realization Method of Database Connection Pool Based on JDBC and Design Pattern
文章编号:
1673-629X(2011)01-0084-04
作者:
欧阳宏基 葛萌 赵蔷
咸阳师范学院信息工程学院
Author(s):
OUYANG Hong-ji GE Meng ZHAO Qiang
Information Engineering College, Xianyang Normal University
关键词:
JDBCConnection数据库连接池设计模式Java数据库应用
Keywords:
JDBC Connection database connection pool design pattern java database application
分类号:
TP311.52
文献标志码:
A
摘要:
目前Java数据库应用程序中存在着通过JDBC访问数据库时频繁创建、关闭Connection对象的做法。这种做法对并发访问量大的应用会带来较大的性能开销。针对这一问题,提出并实现了一个基于JDBC与设计模式相结合的数据库连接池实现方法,该方法从连接池对象和连接池管理者两个方面实现对Connection对象的管理,Connection对象使用完后不去关闭而是放回到连接池中以达到复用的目的,从而提高了Java数据库应用的效率
Abstract:
At present,in the Java database applications exists a solution that the Connection object is frequently created and closed when the database is visited through JDBC. This solution will bring a large performance overhead for the applications which have large concurrent access volume. In view of the issue, has proposed and realized a database Connection pool method based on the combination of JDBC and design pattern. The method has achieved the management of the Connection object through the Connection pool object and the Connection pool manager, the Connection object is not closing but putting back the Connection pool after using up to achieve the purpose of reuse, thus improving the efficiency of Java database applications

相似文献/References:

[1]谷庆华 李成贵.基于Java语言实现数据库的访问[J].计算机技术与发展,2008,(02):13.
 GU Qing-hua,LI Cheng-gui.Realizing Database Accessing Based on Java[J].,2008,(01):13.
[2]朱平付 季桂树 尹辉.基于轻量级J2EE架构的一种持久层设计[J].计算机技术与发展,2008,(06):94.
 ZHU Ping-fu,JI Gui-shu,YIN Hui.A Solution of Data Persistence Based on Lightweight J2EE Framework[J].,2008,(01):94.
[3]王连华 王华[] 鲁大营.基于JSP/Servlet的加油站管理系统的设计与实现[J].计算机技术与发展,2008,(06):236.
 WANG Lian-hua,WANG Hua,LU Da-ying.Design and Implementation of Filling Station Information Management System Based on JSP/Servlet Technique[J].,2008,(01):236.
[4]周彩兰 孙琳 李素芬.基于JSP的网络数据库连接技术[J].计算机技术与发展,2006,(04):209.
 ZHOU Cai-lan,SUN Lin,LI Su-fen.Web Database Connection Technology Based on JSP[J].,2006,(01):209.
[5]渠本哲 张凝 王潜平.使用Java和XML实现数据移植[J].计算机技术与发展,2006,(09):15.
 QU Ben-zhe,ZHANG Ning,WANG Qian-ping.Implementation of Data Migration with Java and XML[J].,2006,(01):15.
[6]冯战 郝克刚 葛玮.Java中的持久性存储技术——JDBC和JDO[J].计算机技术与发展,2006,(09):46.
 FENG Zhan,HAO Ke-gang,GE Wei.The Persistence Store Technique in Java JDBC and JDO[J].,2006,(01):46.
[7]侯灿 杨宗凯 刘威.J2EE架构下连接池技术的应用与改进[J].计算机技术与发展,2006,(10):8.
 HOU Can,YANG Zong-kai,LIU Wei.Application and Improvement of Database Connection Pool Based on J2EE Architecture[J].,2006,(01):8.
[8]张晓琳 李辉.基于J2EE的高校固定资产管理系统设计与实现[J].计算机技术与发展,2012,(08):177.
 ZHANG Xiao-lin,LI Hui.Design and Implementation of Higher Education Fixed Assets Management System Based on J2EE[J].,2012,(01):177.
[9]于金良[],朱志祥[],梁小江[]. 基于Flume的MySQL数据自动收集系统[J].计算机技术与发展,2016,26(12):137.
 YU Jin-liang[],ZHU Zhi-xiang[],LIANG Xiao-jiang[]. Automatic Collection System for MySQL Data Based on Flume[J].,2016,26(01):137.
[10]韩兵,李晶晶,方英兰.基于 JDBC 数据管理与查询优化的研究[J].计算机技术与发展,2018,28(09):176.[doi:10.3969/ j. issn.1673-629X.2018.09.036]
 HAN Bing,LI Jing-jing,FANG Ying-lan.Research on Data Management and Query Optimization Based on JDBC[J].,2018,28(01):176.[doi:10.3969/ j. issn.1673-629X.2018.09.036]

备注/Memo

备注/Memo:
陕西省教育专项科研计划项目(09JK811);咸阳师范学院专项科研基金项目(07XSYK283)欧阳宏基(1982-),男,陕西太白人,助教,研究方向为web应用、网络集成与数据库技术;赵蔷,副教授,研究方向为软件工程、图像处理
更新日期/Last Update: 1900-01-01