JNDI : Directory and Packages

The javax.naming.directory extends the javax.naming package to provide
functionality for accesssing directory services in addition to naming services.

The Directory Context

The DirContext interface represents a directory context.
DirContext also behaves as a naming context by extending the "Context" interface.

This means that a directory object can also provide a naming context.
It defines methods for searching and updating attibutes associated with a directory entry.

Attributes.

You can use getAttribtues() method to retrieve the attributes associated with a directory entry.
Searches:

DirContext contains methods for performing content based searching of the directory using the search() method.



Analytics