BoneCP 版本選擇

BoneCP 是一個高性能的數據庫連接池,其性能要高過c3p0

 

官網原文介紹:

About

BoneCP is a fast, free, open-source, Java database connection pool (JDBC Pool) library. If you are familiar with C3P0 and DBCP then you already know what this means. For the rest, this is a library that will manage a database connection for you to get faster database access in your application.

Why write another alternative to C3P0/DBCP?

Take a look at the benchmark section by clicking here. BoneCP is fast! For some tests, it's almost 25 times faster than the next fastest connection pool option, not to mention that BoneCP never spin-locks so it won't slow down your application. Don't take our word for it though, checkout the features or download the code and run the provided benchmark test yourself.

Who uses BoneCP? Is it a toy project?

This being open-source software, tracking who actually uses the library is next to impossible. However, as of March 2010, it is in active use in at least 3 different enterprise packages, one of which being a mission-critical financial application with millions of transactions being processed every year. It has also been successfully integrated with persistence products such Hibernate and DataNucleus. With over 160 unit tests, 100% unit test coverage is delivered but no warranty is provided, either expressly or implied.

Requirements

  • A database that accepts connections
  • A driver to go with it
  • Google Guava library, available for free from here.
  • The SLF4J logging library.
  • JDK1.5 or higher.

版本問題

BoneCP 0.6x系列的版本支持JDK1.5以上版本;

BoneCP 0.7x系列的版本只支持JDK1.6以上版本;

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章