Please enable JavaScript.
Coggle requires JavaScript to display documents.
Java Naming Directory Interface (Naming system (context (InitialContext…
Java Naming Directory Interface
Naming system
binding
Objects
Names
context
set of bindings
subcontext / subdirectory
InitialContext
starting point
for all naming / directory operations
definition
set of contexts with services
naming services
operations
Directory Service
naming service + objects w/ attributes
tree like structure
operations on attributes
Search Service
name space
collection of names
name
compound name
atomic name
Issue
Many naming and directory products
Different protocols
Lightweight Directory Access Protocol (LDAP)
Network Information System (NIS)
Network Directory System (NDS)
Different API
Solution (JNDI)
standard interface
used in EJB, RMI, JDBC
for Java Programs
Architecture
Client API
allows Java code to perform directory operations
Service Provider
Driver
Service Provider Interface (SPI)
interface where vendors can connect
Packages
javax.naming
Context - interface
lookup()
listBindings()
list()
InitialContext - class
Name - class
Reference - class
NamingException - class
javax.naming.directory
DirContext - class implement Context
getAttributes()
modifyAttributes()
search()
javax.naming.ldap
LdapContext - interface
for extended operations
javax.naming.event
NamingEvent - object
NamingListener - interface
EventContext
EventDirContext
javax.naming.spi
3rd party plug-in architechture
Java Object support
Multiple naming service cooperation