itVincent Blog - Java Working Fun!

          技術引領時代!
          posts - 117, comments - 181, trackbacks - 0, articles - 12

          導航

          <2010年6月>
          303112345
          6789101112
          13141516171819
          20212223242526
          27282930123
          45678910

          常用鏈接

          留言簿(5)

          我參與的團隊

          隨筆分類(70)

          隨筆檔案(117)

          文章檔案(12)

          相冊

          收藏夾(1)

          我的BLOG

          我的朋友BLOG

          搜索

          •  

          積分與排名

          • 積分 - 308141
          • 排名 - 187

          最新評論

          閱讀排行榜

          評論排行榜

          BoneCP 是一個開源的快速的 JDBC 連接池

          有以下特性:
          Highly scalable, fast connection pool
          Callback (hook interceptor) mechanisms on a change of connection state.
          Partitioning capability to increase performance
          Allows direct access to a connection
          Automatic resizing of pool
          Statement caching support
          Support for obtaining a connection asynchronously (by returning a Future<Connection>)
          Release helper threads to release a connection in an asynchronous fashion for higher performance.
          Easy mechanism to execute a custom statement on each newly obtained connection (initSQL).
          Support to switch to a new database at runtime without shutting down an application
          Ability to replay any failed transaction automatically (for the case where database/network goes down etc)
          JMX support
          Lazy initialization capable
          Automatic validation of connections (keep-alives etc)
          Allow obtaining of new connections via a datasource rather than via a Driver
          Datasource/Hibernate support capable
          Debugging hooks to highlight the exact place where a connection was obtained but not closed
          Debugging support to show stack locations of connections that were closed twice.
          Custom pool name support.
          100% unit test code coverage (over 100 JUnit tests).
          Free, open source and written in 100% pure Java with very extensive and complete Javadocs

          =============================================================

          在maven導入jar:
          <dependency>
              <groupId>com.jolbox</groupId>
              <artifactId>bonecp</artifactId>
              <version>0.6.5-rc2</version>
             </dependency>

          此包沒有在官方網(wǎng)站上發(fā)布,因此在再加入
          <repository>
             <releases>
              <enabled>true</enabled>
             </releases>
             <id>bonecp-repo</id>
             <name>BoneCP Repository</name>
             <url>http://jolbox.com/bonecp/downloads/maven</url>
            </repository>

          =================================================================

          在spring配置數(shù)據(jù)源:
          <bean id="dataSource" class="com.jolbox.bonecp.BoneCPDataSource" destroy-method="close">
              <property name="driverClass" value="${jdbc.driverClassName}" />
              <property name="jdbcUrl" value="${jdbc.url}" />
              <property name="username" value="${jdbc.username}"/>
              <property name="password" value="${jdbc.password}"/>
           </bean>

          版權所有:itVincent    轉(zhuǎn)載請注明來源/作者
          Add to del.icio.usAdd to del.icio.usDigg This!Digg This!Share on FacebookShare on FacebookGoogle Bookmark ThisGoogle Bookmark This

          只有注冊用戶登錄后才能發(fā)表評論。


          網(wǎng)站導航:
           
          主站蜘蛛池模板: 长汀县| 海盐县| 普陀区| 页游| 雅江县| 东明县| 宁夏| 新野县| 时尚| 出国| 肃宁县| 通州区| 山阳县| 满城县| 长阳| 页游| 那坡县| 宁陵县| 安图县| 广平县| 昌宁县| 马鞍山市| 襄垣县| 曲靖市| 正镶白旗| 四川省| 化隆| 牡丹江市| 武宣县| 沙河市| 克什克腾旗| 博野县| 和林格尔县| 綦江县| 天柱县| 会宁县| 德令哈市| 盐池县| 阜新| 化隆| 克拉玛依市|