JDK 6 Java Naming and Directory Interface-related APIs &
Developer Guides -- from Sun Microsystems (original) (raw)
The Java Naming and Directory Interface (JNDI) provides naming and directory functionality to applications written in the Java programming language. It is designed to be independent of any specific naming or directory service implementation. Thus a variety of services--new, emerging, and already deployed ones--can be accessed in a common way.
The JNDI architecture consists of an API (Application Programming Interface) and an SPI (Service Provider Interface). Java applications use this API to access a variety of naming and directory services. The SPI enables a variety of naming and directory services to be plugged in transparently, allowing the Java application using the API of the JNDI technology to access their services.
Enhancements in Java SE 6
New APIs to get the InitialContext
Shorthand methods are provided for getting the InitialContext.LDAP Service Provider
- Provided a way to specify read timeout for LDAP operations.
- Support added for pooling of connections created when custom socket factories are used.
RMI Service Provider
- Provided a property for specifying a socket factory for use by RMI connections.
API and SPI Specification
- JNDI API and SPI Specification - A list of the packages included in the JNDI technology.
Tutorials
- JNDI Tutorial - A tutorial introduction to the JNDI technology with programming examples.
API Enhancements
More Information
- The JNDI Home Page
- Subscribe to the JNDI-INTEREST list
- See a demonstration namespace browser written using JNDI and Swing
- Related documents
- JNDI Architecture Documents:
- JNDI Service Providers:
To use JNDI with a particular naming or directory service, you need a JNDI service provider, which is a module that plugs in beneath the JNDI API to access the naming or directory service. The JNDI web site maintains a list of service providers available for JNDI.
Java 2 SDK, v 1.4 and later releases include the following service providers:
![]() |
Copyright © 1993, 2018, Oracle and/or its affiliates. All rights reserved. | Contact Us |
---|