org.springframework.jdbc.datasource.lookup
Class JndiDataSourceLookup
java.lang.Object
   org.springframework.jndi.JndiAccessor
org.springframework.jndi.JndiAccessor
       org.springframework.jndi.JndiLocatorSupport
org.springframework.jndi.JndiLocatorSupport
           org.springframework.jdbc.datasource.lookup.JndiDataSourceLookup
org.springframework.jdbc.datasource.lookup.JndiDataSourceLookup
- All Implemented Interfaces: 
- DataSourceLookup
- public class JndiDataSourceLookup 
- extends JndiLocatorSupport- implements 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:
- JndiAccessor.setJndiEnvironment(java.util.Properties),- JndiAccessor.setJndiTemplate(org.springframework.jndi.JndiTemplate)
 
 
 
 
 
 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
JndiDataSourceLookup
public JndiDataSourceLookup()
getDataSource
public DataSource getDataSource(String dataSourceName)
                         throws DataSourceLookupFailureException
- Description copied from interface: DataSourceLookup
- Retrieve 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
 
Copyright © 2002-2008 The Spring Framework.