Java Naming and Directory Interface: Difference between revisions

Content deleted Content added
Techi2ee (talk | contribs)
Line 22:
== Basic lookup ==
 
JNDIJNDI2 organizes its names into a hierarchy. A name can be any string such as "com.mydomain.ejb.MyBean". A name can also be an object that supports the <code>Name</code> interface, however a string is the most common way to name an object. A name is bound to an object in the directory by storing either the object or a [[JNDI reference|reference]] to the object in the directory service identified by the name.
 
The JNDI API defines a context that specifies where to look for an object. The initial context is typically used as a starting point.