Class DataSourceFinder
java.lang.Object
org.apache.synapse.commons.datasource.DataSourceFinder
Utility class to locate DataSources from a JNDI tree
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic DataSourcefind(String dsName, Properties jndiEnv) Find a DataSource using the given name and JNDI environment propertiesstatic DataSourceFind a DataSource using the given name and naming context
-
Constructor Details
-
DataSourceFinder
public DataSourceFinder()
-
-
Method Details
-
find
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
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
-