What Is JNDI?

JNDI is a unified Java API designed to standardized access to a variety of naming and directory services. This abstract mechanism is what makes J2EE an attractive enterprise architecture for Internet and intranet applications. Applications are written in a standard way to use the JNDI API, which transparently calls the underlying naming or directory service. A JNDI-compliant service must implement part of the JNDI API. Here is a brief description of the two parts that make up the JNDI architecture:

  • An application-level programming interface (API). APIs are used by the application components to access naming and directory services.

  • A service provider interface (SPI). This part of the API is used to plug in a provider of a naming ...

Get Sams Teach Yourself EJB in 21 Days 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.