Class DataSourceFinder
- java.lang.Object
-
- org.apache.synapse.commons.datasource.DataSourceFinder
-
public class DataSourceFinder extends Object
Utility class to locate DataSources from a JNDI tree
-
-
Constructor Summary
Constructors Constructor Description DataSourceFinder()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static DataSource
find(String dsName, Properties jndiEnv)
Find a DataSource using the given name and JNDI environment propertiesstatic DataSource
find(String dsName, Context context)
Find a DataSource using the given name and naming context
-
-
-
Method Detail
-
find
public static DataSource find(String dsName, Properties jndiEnv)
Find a DataSource using the given name and JNDI environment properties- Parameters:
dsName
- Name of the DataSource to be foundjndiEnv
- JNDI environment properties- Returns:
- DataSource if found , otherwise null
-
find
public static DataSource find(String dsName, Context context)
Find a DataSource using the given name and naming context- Parameters:
dsName
- Name of the DataSource to be foundcontext
- Naming Context- Returns:
- DataSource if found , otherwise null
-
-