Chapter 7. Distributed Technologies

Java Naming and Directory Interface (JNDI)

Packages

javax.naming, javax.naming.directory, javax.naming.event, javax. naming.ldap, javax.naming.spi

Use: J2SE (JDK 1.3), J2EE (J2EE1.2)

Description

The Java Naming and Directory Interface API was developed to provide a standardized way to access lookup services from within Java code.

It’s a vague definition, but it’s that way on purpose. JNDI allows you to standardize access across a whole range of naming and directory services. It's like having all the phonebooks in the world at your fingertips, without actually having to carry them around with you. Which actually makes it more like having 24-hour ...

Get Applied Java™ Patterns now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.