public class JndiDataSourceService extends Object implements DataSourceService
Constructor and Description |
---|
JndiDataSourceService() |
Modifier and Type | Method and Description |
---|---|
void |
clearCache()
This method clears the JNDI DS cache.
|
void |
clearDataSource(String dsName)
This method clears the JNDI DS cache.
|
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.
|
String |
getDSBoundName(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.
|
public void clearCache()
DataSourceService
clearCache
in interface DataSourceService
public void clearDataSource(String dsName)
DataSourceService
clearDataSource
in interface DataSourceService
public DataSource getDataSource(String dsName) throws DatasourceServiceException
DataSourceService
getDataSource
in interface DataSourceService
dsName
- The Datasource nameDatasourceServiceException
public String getDSBoundName(String dsName) throws DatasourceServiceException
DataSourceService
getDSBoundName
in interface DataSourceService
dsName
- The Datasource name (like SampleData)DatasourceServiceException
Copyright © 2017 Hitachi Vantara. All rights reserved.