Java Naming and Directory Interface (JNDI) tutorials and examples.
JNDI architecture and JDBC architecture is somewhat similar. Both of them are involved in providing standardized API which is protocol independent created at the protocol specific driverís top or the provider implementations. Data source in use will be insulating the application, for example, this doesnít really matter whether LDAP or NDS directory services will be accessed by the application.
Both SPI as well as API are included in JNDI architecture as it has been given in figure.