org.pentaho.platform.engine.services.connection.datasource.dbcp
Class JndiDatasourceService

java.lang.Object
  extended by org.pentaho.platform.engine.services.connection.datasource.dbcp.BaseDatasourceService
      extended by org.pentaho.platform.engine.services.connection.datasource.dbcp.JndiDatasourceService
All Implemented Interfaces:
IDatasourceService

public class JndiDatasourceService
extends BaseDatasourceService


Field Summary
 
Fields inherited from interface org.pentaho.platform.api.data.IDatasourceService
IDATASOURCE_SERVICE, JDBC_DATASOURCE, JDBC_POOL
 
Constructor Summary
JndiDatasourceService()
           
 
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.
 
Methods inherited from class org.pentaho.platform.engine.services.connection.datasource.dbcp.BaseDatasourceService
clearCache, clearDataSource, getDSBoundName, getDSUnboundName
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JndiDatasourceService

public JndiDatasourceService()
Method Detail

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