13-08-2012, 12:51 PM
Java Naming and DirectoryInterface (JNDI)
JNDI.ppt (Size: 171 KB / Downloads: 67)
Naming Service
Naming Service performs:
– Binding: Associating names with objects
– Lookup: Find an object based on a name.
• Examples: DNS and File systems
Examples:
– DNS
– Filesystems
Directory Service
Directory is a naming service that stores
objects with attributes.
– Usernames and passwords etc stored in attrs.
Tree like structure
Binding
Binding is an association of a name with an object.
– Filename “autoexec.bat” has a binding to some file data on the disk.
– “c:\windows” foldername is bound to a folder on your drive.
Compound name such as /usr/people/ed/.cshrc
consists of multiple bindings, one to usr, one to
people, one to ed, and one to .cshrc.
InitialContext
Starting point for exploring a namespace.
Starting point for performing all naming and
directory operations.