public class DBDataSource
extends java.lang.Object
Create the bean, set the properties and then call create() to get back a DataSource that provides a getConnection() method. Dont forget to close the connection after you.
| Constructor and Description |
|---|
DBDataSource()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
javax.sql.DataSource |
create()
Deprecated.
Creates a DataSource.
|
java.lang.String |
getDataSourceReferenceName()
Deprecated.
|
java.lang.String |
getInitContextLookup()
Deprecated.
|
void |
setDataSourceReferenceName(java.lang.String dataSourceReferenceName)
Deprecated.
|
void |
setInitContextLookup(java.lang.String initContextLookup)
Deprecated.
|
public javax.sql.DataSource create()
throws javax.naming.NamingException,
java.sql.SQLException
javax.naming.NamingExceptionjava.sql.SQLExceptionpublic java.lang.String getDataSourceReferenceName()
public void setDataSourceReferenceName(java.lang.String dataSourceReferenceName)
public java.lang.String getInitContextLookup()
public void setInitContextLookup(java.lang.String initContextLookup)