May 2001
Intermediate to advanced
1088 pages
30h 13m
English
JNDI has directory-specific extensions for performing directory operations as opposed to the simple name-value operations in most naming services. The DirContext interface and InitialDirContext classes provide additional methods for dealing with directories. The directory-specific classes are all contained within the javax.naming.directory package.
If you need to perform directory operations, create an InitialDirContext instead of an InitialContext. For example
DirContext dirCtx = new InitialDirContext();
All the same rules apply to InitialDirContext as far as the property names for choosing an initial context factory.
The Attribute interface and the BasicAttribute class represent an attribute of an object stored in a directory. ...
Read now
Unlock full access