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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JDBCPooledDataSource
public JDBCPooledDataSource()
getDataSource
public static DataSource getDataSource(String driver,
String url,
String user,
String pass)
throws Exception
- Throws:
Exception
main
public static void main(String[] args)