As illustrated in Figure 14.1, JNDI provides two interfaces between a Java application and a naming or directory service, as follows : Figure 14.1. The JNDI architectural framework provides a common API to a variety of naming and directory services.
Note Further descriptions of the JNDI APIs and SPIs are provided in their respective sections later in this chapter. Hence, the JNDI architecture is independent of any specific service provider and therefore supports access to a variety of existing and emerging naming and directory services. The Java 2 SDK version 1.3 and later releases include the JNDI classes and the three Service Provider Interfaces ”LDAP, COS, and RMI ”shown in Figure 14.1. JNDI is also available as a Java Standard Extension for use with JDK 1.1 and Java 2 SDK 1.2. WebLogic Server includes these three standard SPIs, as well as the WebLogic SPI for WebLogic Server's embedded naming service. The four Service Provider Interfaces included in WebLogic Server are:
Additional Service Provider Interfaces for JNDI are also available, including Domain Name Service (DNS) and Network Information Service (NIS). Note A complete list of JNDI complaint service providers can be located at http://java.sun.com/products/jndi/serviceproviders.html. |