精华帖 (1) :: 良好帖 (5) :: 新手帖 (1) :: 隐藏帖 (0)
|
|
---|---|
作者 | 正文 |
发表时间:2010-10-29
caoyangx 写道 BoneCP最近一直用,昨天还升级最新的,不过设计的还不是很合适,BoneCP采用长连接方式,一旦数据库故障或网络故障发生后,连接池就会失效,即使解决故障后也得重启web服务。这点不如DBCP。还有配置文件比较让人头晕,一大堆配置,有用的一个没有,比如defaultCommit,他默认是true,也没法改成false,这样的话有些嵌套事务就无法回滚,所以我下了他的源码手动修改后重新编译成jar。我都等了3个版本也不见作者修改这个问题。总体来说,还算可以,我没有做过测试。我不知道BoneCP比DBCP快多少,但是感官上是一样的。
http://jolbox.com/bonecp/downloads/site/apidocs/com/jolbox/bonecp/BoneCPConfig.html#setTransactionRecoveryEnabled(boolean) v0.7.1-SNAPSHOT: defaultAutoCommit, transactionIsolation, ...: http://github.com/wwadge/bonecp/blob/master/bonecp/src/main/java/com/jolbox/bonecp/BoneCPConfig.java#L1331 /** * Sets the defaultAutoCommit setting for newly created connections. If not set, use driver default. * @param defaultAutoCommit the defaultAutoCommit to set */ public void setDefaultAutoCommit(Boolean defaultAutoCommit) { this.defaultAutoCommit = defaultAutoCommit; } /** * Sets the defaultReadOnly setting for newly created connections. If not set, use driver default. * @param defaultReadOnly the defaultReadOnly to set */ public void setDefaultReadOnly(Boolean defaultReadOnly) { this.defaultReadOnly = defaultReadOnly; } /** * Sets the defaultCatalog setting for newly created connections. If not set, use driver default. * @param defaultCatalog the defaultCatalog to set */ public void setDefaultCatalog(String defaultCatalog) { this.defaultCatalog = defaultCatalog; } /** * Sets the defaultTransactionIsolation. Should be set to one of: NONE, READ_COMMITTED, READ_UNCOMMITTED, * REPEATABLE_READ or SERIALIZABLE. If not set, will use driver default. * @param defaultTransactionIsolation the defaultTransactionIsolation to set */ public void setDefaultTransactionIsolation(String defaultTransactionIsolation) { this.defaultTransactionIsolation = defaultTransactionIsolation; } |
|
返回顶楼 | |
发表时间:2010-10-29
(对不起,我不知道中国 - 使用谷歌翻译)
Wallace BoneCP 创造者 |
|
返回顶楼 | |
发表时间:2010-10-31
最后修改:2010-10-31
未比较过,看一下。
|
|
返回顶楼 | |
发表时间:2010-12-04
额 一直用C3P0 我觉得C3P0还有一个好处就是稳定啊
|
|
返回顶楼 | |
发表时间:2010-12-04
看看~~是不是传说中一样好
|
|
返回顶楼 | |
发表时间:2010-12-07
BoneCP测试过了,性能的确最好,下次项目里改过来看看
|
|
返回顶楼 | |
发表时间:2011-09-14
fuanyu 写道 顶下楼主,的确是个好帖。
顶你咯。。。FUANYU |
|
返回顶楼 | |
发表时间:2011-09-14
刚才有位仁兄说的没错,稳定,并发访问高效,这才是第一重要。
|
|
返回顶楼 | |
发表时间:2011-09-22
官方消息不见得是正确的,C3P0是垃圾,proxool比C3P0要好
|
|
返回顶楼 | |
发表时间:2011-09-23
下载你的源码看看,分析一下这4个组件的性能
|
|
返回顶楼 | |