Locating Resources Using JNDI (Java Naming and Directory
Interface), Page 7 A naming service provides a means of storing
simple information under a name, so that by specifying the
registered name you can retrieve the information. A directory
service is similar to a naming service except that it
additionally allows attributes to be associated with the stored
objects. Directory services use the attributes to categorize
names, which means that powerful searching of the directory tree
structure can be supported. JNDI provides a uniform API into a
naming or directory service. You can use any naming or directory
service through JNDI as long as you have access to a Service
Provider implementation for that service. It is simple to use
JNDI from any Java program, including Web applications. The most
common uses of JNDI in Web applications are to publish objects
such as Databases (called data sources). You will see this in
Chapter 14, "Databases and JSP." Enterprise JavaBeans (EJBs).
See Chapter 15, "JSP and EJB intera