public class JndiDataSourceLookup extends JndiLocatorSupport implements DataSourceLookup
DataSourceLookup implementation.
For specific JNDI configuration, it is recommended to configure the "jndiEnvironment"/"jndiTemplate" properties.
JndiAccessor.setJndiEnvironment(java.util.Properties),
JndiAccessor.setJndiTemplate(org.springframework.jndi.JndiTemplate)CONTAINER_PREFIXlogger| Constructor and Description |
|---|
JndiDataSourceLookup() |
| Modifier and Type | Method and Description |
|---|---|
DataSource |
getDataSource(String dataSourceName)
Retrieve the DataSource identified by the given name.
|
convertJndiName, isResourceRef, lookup, lookup, setResourceRefgetJndiEnvironment, getJndiTemplate, setJndiEnvironment, setJndiTemplatepublic DataSource getDataSource(String dataSourceName) throws DataSourceLookupFailureException
DataSourceLookupgetDataSource in interface DataSourceLookupdataSourceName - the name of the DataSourcenull)DataSourceLookupFailureException - if the lookup failed