public class BasicDataSourceFactory
extends java.lang.Object
JNDI object factory that creates an instance of
BasicDataSource that has been configured based on the
RefAddr values of the specified Reference,
which must match the names and data types of the
BasicDataSource bean properties.
| 构造器和说明 |
|---|
BasicDataSourceFactory() |
| 限定符和类型 | 方法和说明 |
|---|---|
static javax.sql.DataSource |
createDBCP2DataSource(java.util.Properties properties)
Creates and configures a
BasicDataSource instance based on the
given properties. |
public static javax.sql.DataSource createDBCP2DataSource(java.util.Properties properties)
throws java.lang.Exception
BasicDataSource instance based on the
given properties.properties - the datasource configuration propertiesjava.lang.Exception - if an error occurs creating the data source