|
The Java Naming and Directory Interface (JNDI) is a Java API for a directory service that allows Java software clients to discover and look up data and objects via a name. Like all Java APIs that interface with host systems, JNDI is independent of the underlying implementation. Additionally, it specifies a service provider interface (SPI) that allows directory service implementations to be plugged into the framework. It may make use of a server, a flat file, or a database; the choice is up to the vendor. Typical uses of JNDI include: * connecting a Java application to an external directory service (such as an address database or an LDAP server) * allowing a Java Servlet to look up configuration information provided by the hosting web container〔 〕 ==Background== The Java RMI and Java EE APIs use the JNDI API to look up objects in a network. The API provides: * a mechanism to bind an object to a name * a directory-lookup interface that allows general queries * an event interface that allows clients to determine when directory entries have been modified * LDAP extensions to support the additional capabilities of an LDAP service The SPI portion allows support for practically any kind of naming or directory service, including: * LDAP * DNS * NIS * CORBA name service * file system Sun Microsystems first released the JNDI specification on March 10, 1997.〔 () 〕 , the current version is JNDI 1.2. 抄文引用元・出典: フリー百科事典『 ウィキペディア(Wikipedia)』 ■ウィキペディアで「Java Naming and Directory Interface」の詳細全文を読む スポンサード リンク
|