Chapter 5. Configuring JNDI and JDBC Services
Most J2EE applications need to access at least one database through JDBC. The recommended way to access databases from JDBC is to do it with JNDI and a data source object. Therefore, in this chapter, you'll cover the following:
How to configure JNDI
How J2EE applications typically access databases
The types of JDBC drivers and data sources available
How to configure these to work with Oracle and other databases
Java Naming and Directory Interface
JNDI is a generic interface that provides a common set of functions for accessing naming and directory services. Used together with other J2EE technologies, JNDI can provide a centralized storage mechanism for components in a distributed computing environment.