作者投稿和查稿 主编审稿 专家审稿 编委审稿 远程编辑

›› 2004, Vol. 30 ›› Issue (09): 96-.

• 论文 • 上一篇    下一篇

基于JDBC的数据库连接池的设计与实现

罗荣,唐学兵   

  1. 武汉大学计算机学院,武汉大学计算机学院 武汉 430072
  • 发布日期:2004-05-15

Design and Realization for JDBC-based Database Connection-pool

LUO Rong, TANG Xuebing   

  1. (College of Computer , Wuhan University , Wuhan 430072 )
  • Published:2004-05-15

摘要: 由实际开发基于JDBC的动态Web系统中出现的问题,提出了数据库连接管理这一重要思想。该文先对数据库连接进行详尽的分析,进而提出并实现了一个高效的连接管理策略。特别对连接管理中的两个难点:事务处理和多数据库服务器进行了深入的探讨,并给出了相应的解决方案。最后,在销售查询系统中实现此连接池,事实证明了方案是高效的。

关键词: JDBC, 数据库连接池, Java, JSP/JavaBean, 多线程

Abstract: We come out an important thinking of management of database connection according to the problems we meet in the development of JDBC-based dynamic web system. This paper design and realize a high-performance strategy for the connection management based on the thorough analysis. Especially, give a deeper discuss on the transaction processing and multi-database servers. Finally, we realize and testify the connection-pool in our project. The result is satisfactory.

中图分类号: