火烧径-make life easier
fireshort · rbyvkzhxhl · 2008-03-04(近似)
<< 让人郁闷的mysql JDBC驱动
|
首页
|
产生GUID的Java工具类 >>
2005年07月16日
数据库连接池的选型:DBCP vs C3P0
Tag:
Java
DB
版权声明
:转载时请以超链接形式标明文章原始出处和作者信息及
本声明
http://fireshort.blogbus.com/logs/1315559.html
早上在JavaEye看到Robbin说:
引用:
DBCP的bug非常多,因此Hibernate3已经不再支持DBCP连接池,而推荐使用C3PO。建议你更换数据库连接池。
然后跑去Hibernate官方论坛看,果然,在
Please migrate away from DBCP
看到Gavin说:
引用:
Guys, after many problems with DBCP, I have decided to remove built-in support for DBCP from Hibernate3, and deprecate DBCP in Hibernate 2.1. I advise everyone to migrate away from DBCP to something that actually works, like C3P0 or Proxool.
(If you /must/ use DBCP, you can always write your own connection provider.)
Actually, it is probably about time we remove any remaining dependencies to Apache commons stuff, since historically they have caused just /so/ much trouble. The only Apache things that do seem to work very well are Ant and log4j. Even commons-logging is a PIA, especially in Tomcat.
这个台湾Guy也是如此
建议
:
引用:
挑選觀念: 是否認為 jakarta 是唯一選擇
是的話, 採用 commons-dbcp ; 不是的話, 採用 proxool / c3p0
Jakarta-commons社区对Hibernate官方不支持DBCP的应对:
http://wiki.apache.org/jakarta-commons/DBCP/Hibernate
相关文章:
用Java进行LDAP编程的方式
2007-01-23
Java中对有BOM头的UTF-8文件的处理
2006-10-19
j2ee系统与rtx的整合实现
2006-07-27
commons-fileupload中文乱码问题的解决
2005-12-20
javadbf中文问题的解决
2005-10-19
收藏到:
Del.icio.us
引用地址:
fireshort
发表于
09时26分11秒
|
编辑
|
继续话题
|
转发
|
推荐
引用
下面Blog引用了该文:
发表评论
原始快照:web.archive.org