C3P0 0.9.5 pre2 发布,Java 连接池 - 开源中国社区
C3P0 0.9.5 pre2 发布,Java 连接池
oschina 2013年05月01日

C3P0 0.9.5 pre2 发布,Java 连接池

oschina oschina 发布于2013年05月01日 收藏 10 评论 5

有免费的MySQL,为什么还要买? >>>  

C3P0 在4月23日时发布了 0.9.5 的第二个预览版本,下载地址:

http://sourceforge.net/projects/c3p0/files/c3p0-bin/c3p0-0.9.5-pre2/

改进记录包括:

c3p0-0.9.5-pre2
    -- Modified unwrap / isWrapperFor methods in proxies to be more permissive, to accept class
       objects for superinterfaces of the wrapped interface as well as of implementation
       classes.
    -- Added support for SLF4J / logback logging, defined short aliases for adapters to
       the various logging libraries, updated documentation with new logging features
    -- Added and documented HOCON / typesafe-config libary support, available if (and only if)
       the typesafe-config library is included with the application.
    -- Refactored mchange-commons-java to eliminate very rare potential deadlocks under simultaneous
       ClassLoading of file in cfg and log packages, and defined a facade into the cfg library use of
       which should eliminate the possibility of such deadlocks if it is used assiduously.
    -- actually documented 'com.mchange.v2.log.jdk14logging.suppressStackWalk'. i said i had earlier
       but apparently not
    -- set 'com.mchange.v2.log.jdk14logging.suppressStackWalk' to true by default in mchange-commons-java

c3p0-0.9.5-pre1
    -- Included 'com.mchange.v2.log.jdk14logging.suppressStackWalk' in c3p0 docs.
    -- In mchange-commons: Added a config property for jdk14 logging users:
       'com.mchange.v2.log.jdk14logging.suppressStackWalk' allows clients to speed up logging
       by suppressing analyzing the stack trace for the caller. (Only the name of the logger will
       be given.)
    -- Modified DataSource to include an (unsupported) getParentLogger() method for JDK7 builds
    -- Handle JDBC4 Connection.isValid properly
    -- Lots of updates to get c3p0 to proxy and compile JDBC4
    -- Removed some jdk14 support stuff from build.properti

此外,从3月20日发布的 0.9.2.1 版本开始 C3P0 的许可证改为 LGPL 和 EPL 双协议。

C3P0是一个开放源代码的JDBC连接池,Hibernate的发行包中默认使用此连接池。

详细的文档在C3P0的下载包中。本站提供最新版的C3P0文档,链接是:

http://www.ostools.net/apidocs/apidoc?api=c3p0

本站文章除注明转载外,均为本站原创或编译。欢迎任何形式的转载,但请务必注明出处,尊重他人劳动共创开源社区。
转载请注明:文章转载自 开源中国社区 [http://www.oschina.net]
本文标题:C3P0 0.9.5 pre2 发布,Java 连接池
分享
评论(5)
最新评论
0
忘记关闭连接了吧
0

引用来自“wenshao”的评论

建议使用阿里巴巴的开源数据库连接池Druid。

文档
https://github.com/alibaba/druid/wiki/%E5%B8%B8%E8%A7%81%E9%97%AE%E9%A2%98

源码
https://github.com/alibaba/druid
IOException Could not get JDBC Connection; nested exception is com.alibaba.druid.pool.GetConnectionTimeoutException: wait millis 514, active 8
六月 16 2014 14:20:14,401 ERROR DiffPackageTaskWrap - org.springframework.jdbc.CannotGetJdbcConnectionException: Could not get JDBC Connection; nested exception is com.alibaba.druid.pool.GetConnectionTimeoutException: wait millis 514, active 8
总是有这个问题,几乎没有什么并发量
0
请教下大家,许可证改为 LGPL 和 EPL 双协议 ;这个双协议是什么意思? 经常看到某些开源采用双协议,比如:MIT 和 GPL 双协议。

双协议是在使用时可以随便选择一个协议使用吗?
0
想做个数据库连接池性能的测试,暂时没有明确的计划,能给提点建议么?
0
建议使用阿里巴巴的开源数据库连接池Druid。

文档
https://github.com/alibaba/druid/wiki/%E5%B8%B8%E8%A7%81%E9%97%AE%E9%A2%98

源码
https://github.com/alibaba/druid
顶部