public class

JndiDataSourceLookup

extends JndiLocatorSupport
implements DataSourceLookup
java.lang.Object
   ↳ org.springframework.jndi.JndiAccessor
     ↳ org.springframework.jndi.JndiLocatorSupport
       ↳ org.springframework.jdbc.datasource.lookup.JndiDataSourceLookup

Class Overview

JNDI-based DataSourceLookup implementation.

For specific JNDI configuration, it is recommended to configure the "jndiEnvironment"/"jndiTemplate" properties.

Summary

[Expand]
Inherited Constants
From class org.springframework.jndi.JndiLocatorSupport
[Expand]
Inherited Fields
From class org.springframework.jndi.JndiAccessor
Public Constructors
JndiDataSourceLookup()
Public Methods
DataSource getDataSource(String dataSourceName)
Retrieve the DataSource identified by the given name.
[Expand]
Inherited Methods
From class org.springframework.jndi.JndiLocatorSupport
From class org.springframework.jndi.JndiAccessor
From class java.lang.Object
From interface org.springframework.jdbc.datasource.lookup.DataSourceLookup

Public Constructors

public JndiDataSourceLookup ()

Public Methods

public DataSource getDataSource (String dataSourceName)

Retrieve the DataSource identified by the given name.

Parameters
dataSourceName the name of the DataSource
Returns
  • the DataSource (never null)