Java Naming and Directory Interface (JNDI) tutorials and examples.
JNDI is used as naming service. It is commonly used to give security mechanism to make users authenticated to access the system resources. Credentials and user information is stored in directory services as entries. It is worthy to point it out that security model is not defined by JNDI however security model is used which has been defined in directory service.
Default initialContext is involved in creation of new Context that is in use of anonymous clients. Java Code: // Connect