Core Java| JSP| Servlets| XML| EJB| JEE5| Web Services| J2ME| Glossary| Questions? | Software Development
 

Java Naming and Directory Interface (JNDI)

The Java Naming and Directory Interface (JNDI) is a directory service based API to allow the clients to discover and lookup data and objects via a name.

Java Naming and Directory Interface (JNDI)

                         


The Java Naming and Directory Interface (JNDI) is a directory service based API to allow the clients to discover and lookup data and objects via a name. JNDI is independent of the underlying implementation similar to all Java APIs that interface with host systems. Moreover, it indicates a service provider interface (SPI) that allows directory service implementations plugged into the framework. Vendor is free to choose either for a server or for a flat file or for a database for implementation.

RMI and Java EE uses the JNDI API to lookup the objects in a network. E.g. Jini does not use the JNDI API and has its own lookup service. 

The API provides:

  • a mechanism that binds up an object with a name.
  • a directory lookup interface to allow general queries
  • an event interface to allow clients that determines when directory entries have been modified
  • LDAP extensions of an LDAP service for supporting additional capabilities.

The SPI portion supports any kind of practical naming or directory services including:

JNDI hierarchally organizes its name, these name can be any string type like "com.mydomain.ejb.MyBean" or it can also be object name that supports the Name interface, but string is the most common way to naming an object. An object is associated with a name in the directory either by storing the object or a reference to the object in the directory service identified by the name.

The JNDI API defines a context indicating the location to look for an object. The initial context is mainly used as a starting point.

 

                         

» View all related tutorials
Related Tags:

Leave your comment:

Name:

Email:

URL:

Title:

Comments:


Enter Code:

Audio Version
Reload Image
 

Note: Emails will not be visible or used in any way, and are not required. Please keep comments relevant. Any content deemed inappropriate or offensive may be edited and/or deleted.

No HTML code is allowed. Line breaks will be converted automatically. URLs will be auto-linked. Please use BBCode to format your text.

Add This Tutorial To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
 
Tell A Friend
Your Friend Name

 

 
Recently Viewed
Software Solutions
Search Tutorials

 

 
 

Home | JSP | EJB | JDBC | Java Servlets | WAP  | Free JSP Hosting  | Search Engine | News Archive | Jboss 3.0 tutorial | Free Linux CD's | Forum | Blogs

About Us | Advertising On RoseIndia.net  | Site Map

India News

Send your comments, Suggestions or Queries regarding this site at roseindia_net@yahoo.com.

Copyright © 2008. All rights reserved.