Package org.biojava.utils
Class JDBCPooledDataSource
java.lang.Object
org.biojava.utils.JDBCPooledDataSource
Returns a DataSource that implements connection pooling
Uses Jakarta Commons DBCP and Pool packages.
See the description of the dbcp package at
http://jakarta.apache.org/commons/dbcp/api/overview-summary.html#overview_description
- Author:
- Simon Foote, Len Trigg, Andy Yates, Thomas Down
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic DataSource
getDataSource
(String driver, String url, String user, String pass) static void
-
Constructor Details
-
JDBCPooledDataSource
public JDBCPooledDataSource()
-
-
Method Details
-
getDataSource
public static DataSource getDataSource(String driver, String url, String user, String pass) throws Exception - Throws:
Exception
-
main
-