Skip to content

lizy2000/BeeCP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

License

Introduction

BeeCP,a lightweight and fast JDBC connection pool implementation.

Download BeeCP_0.63.jar

Configuration

Name Description Remark
poolInitSize pool initialization size
poolMaxSize pool max size
borrowerMaxWaitTime max waiting time for connection borrower time unit:Millisecond,default value:three minutes
preparedStatementCacheSize preparedStatement cache size
connectionIdleTimeout if connections idle time is more then the value,pool will close them time unit:Millisecond,default value:three minutes
connectionValidateSQL test connection is whether active

DataSource Demo

String userId="root";
String password="";
String driver="com.mysql.jdbc.Driver";
String URL="jdbc:mysql://localhost/test";
BeeDataSourceConfig config = new JdbcPoolConfig(driver,URL,userId,password);
DataSource datasource = new BeeDataSource(config);
Connection con = datasource.getConnection();
....................

About

A lightweight Jdbc connection pool

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages