InterviewSolution
| 1. |
So Where Does Jndi Fit Into This Ldap ? |
|
Answer» JNDI provides a STANDARD API for interacting with naming and DIRECTORY services using a service PROVIDER interface (SPI), which is analogous to JDBC driver. To connect to an LDAP server, you MUST obtain a reference to an OBJECT that implements the DirContext. In most applications, this is done by using an InitialDirContext object that takes a Hashtable as an argument: Hashtable env = new Hashtable(); JNDI provides a standard API for interacting with naming and directory services using a service provider interface (SPI), which is analogous to JDBC driver. To connect to an LDAP server, you must obtain a reference to an object that implements the DirContext. In most applications, this is done by using an InitialDirContext object that takes a Hashtable as an argument: Hashtable env = new Hashtable(); |
|