Java Naming and Directory Interface (JNDI) Operations and LDAP Integration
Naming Exceptions
Many methods in the JNDI packages throw NamingException when they need to indicate that the requested operation could not be performed. Typically, you will see try/catch wrappers around methods that might throw a NamingException:
try {
Context ctx = new InitialContext();
Object obj = ctx.lookup("somename");
} ...
Posted on Tue, 09 Jun 2026 16:57:45 +0000 by Graphi