9.4. JNDI sample application

LDAP servers are widely used in enterprise systems to store data such as users, profiles, and permissions.

Java programs can use JNDI to communicate with LDAP servers in the same way that they do to communicate with other naming systems such as WebSphere name server. There are some LDAP specific APIs provided by LDAP vendors, but the mechanism used to communicate between a Java program and an LDAP server is almost the same whether this program is communicating with an LDAP server or another naming server (such as WebSphere naming server). First we have to create an Initial Context, and then use it to connect and interact with the name server.

The JNDI code used by WebSphere to talk to LDAP servers is in a file called ...

Get WebSphere V3.5 Handbook now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.