Summary

JNDI provides a uniform API to an underlying naming or driectory service. A Naming Service provides a means of storing simple information against a name so the information can be retrieved using the name as a key. A Directory Service stores additional attribute information, as well as values against a name. Directory Services use attributes to categorize names so that powerful searching of the directory tree structure can be supported.

JNDI supports any naming service provided a Service Provider implementation is available for the service. Standard services supported by JNDI include the following:

  • Lightweight Directory Access Protocol (LDAP)

  • Novel Directory Services (NDS)

  • CORBA

  • Active Directory is supported via its LDAP interface

Using JNDI ...

Get Sams Teach Yourself J2EE™ in 21 Days now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.