Class JndiDataSourceLookup
java.lang.Object
org.springframework.jndi.JndiAccessor
org.springframework.jndi.JndiLocatorSupport
org.springframework.jdbc.datasource.lookup.JndiDataSourceLookup
- All Implemented Interfaces:
- DataSourceLookup
JNDI-based 
DataSourceLookup implementation.
 For specific JNDI configuration, it is recommended to configure the "jndiEnvironment"/"jndiTemplate" properties.
- Since:
- 2.0
- Author:
- Costin Leau, Juergen Hoeller
- See Also:
- 
Field SummaryFields inherited from class org.springframework.jndi.JndiLocatorSupportCONTAINER_PREFIXFields inherited from class org.springframework.jndi.JndiAccessorlogger
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptiongetDataSource(String dataSourceName) Retrieve the DataSource identified by the given name.Methods inherited from class org.springframework.jndi.JndiLocatorSupportconvertJndiName, isResourceRef, lookup, lookup, setResourceRefMethods inherited from class org.springframework.jndi.JndiAccessorgetJndiEnvironment, getJndiTemplate, setJndiEnvironment, setJndiTemplate
- 
Constructor Details- 
JndiDataSourceLookuppublic JndiDataSourceLookup()
 
- 
- 
Method Details- 
getDataSourceDescription copied from interface:DataSourceLookupRetrieve the DataSource identified by the given name.- Specified by:
- getDataSourcein interface- DataSourceLookup
- Parameters:
- dataSourceName- the name of the DataSource
- Returns:
- the DataSource (never null)
- Throws:
- DataSourceLookupFailureException- if the lookup failed
 
 
-