public class DataSourceFinder
extends java.lang.Object
Constructor and Description |
---|
DataSourceFinder() |
Modifier and Type | Method and Description |
---|---|
static javax.sql.DataSource |
find(java.lang.String dsName,
javax.naming.Context context)
Find a DataSource using the given name and naming context
|
static javax.sql.DataSource |
find(java.lang.String dsName,
java.util.Properties jndiEnv)
Find a DataSource using the given name and JNDI environment properties
|
public static javax.sql.DataSource find(java.lang.String dsName, java.util.Properties jndiEnv)
dsName
- Name of the DataSource to be foundjndiEnv
- JNDI environment propertiespublic static javax.sql.DataSource find(java.lang.String dsName, javax.naming.Context context)
dsName
- Name of the DataSource to be foundcontext
- Naming ContextCopyright © 2005-2020 Apache Software Foundation. All Rights Reserved.