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