org.pentaho.platform.engine.services.connection.datasource.dbcp
Class JndiDatasourceService
java.lang.Object
org.pentaho.platform.engine.services.connection.datasource.dbcp.BaseDatasourceService
org.pentaho.platform.engine.services.connection.datasource.dbcp.JndiDatasourceService
- All Implemented Interfaces:
- IDatasourceService
public class JndiDatasourceService
- extends BaseDatasourceService
Method Summary |
DataSource |
getDataSource(String dsName)
Since JNDI is supported different ways in different app servers, it's
nearly impossible to have a ubiquitous way to look up a datasource. |
JndiDatasourceService
public JndiDatasourceService()
getDataSource
public DataSource getDataSource(String dsName)
throws DatasourceServiceException
- Since JNDI is supported different ways in different app servers, it's
nearly impossible to have a ubiquitous way to look up a datasource. This
method is intended to hide all the lookups that may be required to find a
jndi name.
- Parameters:
dsName
- The Datasource name
- Returns:
- DataSource if there is one bound in JNDI
- Throws:
DatasourceServiceException