Package org.biojava.utils
Class JDBCPooledDataSource
- java.lang.Object
-
- org.biojava.utils.JDBCPooledDataSource
-
public class JDBCPooledDataSource extends Object
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 Constructor Description JDBCPooledDataSource()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static DataSource
getDataSource(String driver, String url, String user, String pass)
static void
main(String[] args)
-
-
-
Constructor Detail
-
JDBCPooledDataSource
public JDBCPooledDataSource()
-
-
Method Detail
-
getDataSource
public static DataSource getDataSource(String driver, String url, String user, String pass) throws Exception
- Throws:
Exception
-
-