7.2. What is JNDI?

JNDI—Java Naming and Directory Interface—is a specification and API that allows Java programs to get access to information in a variety of different naming services. Whatever the underlying naming service, and independent of the vendor, the JNDI client gets access to data in the same way. Of course, the kind of data that is retrieved will depend on the underlying server. Thus, JNDI lookups return Java objects, which will be of classes that are appropriate to model the data returned. The JNDI Specification says little about the kinds of objects that can be retrieved from, and stored in, the underlying naming service. The Specification allows clients to write and rename entries, as well as reading them.

Internally, JNDI uses ...

Get Applied Enterprise JavaBeans™ Technology 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.