This exception is thrown to indicate that the result being returned or returned so far is partial, and that the operation cannot be completed. This abstract class is used to represent a referral exception, which is generated in response to a referral such as that returned by LDAP v3 servers. This exception is thrown when attempting to communcate with a directory or naming service and that service is not available. This exception is thrown when a method produces a result that exceeds a size-related limit. This exception is thrown when a method does not terminate within the specified time limit.
Package javax.naming Description Provides the classes and interfaces for accessing naming services.
JNDI provides naming and directory functionality to applications written in the Java programming language. It is designed to be independent of any specific naming or directory service implementation. This package defines the notion of a context , represented by the Context interface. Context is the core interface for looking up, binding, unbinding, and renaming objects, and for creating and destroying subcontexts. The overloads that accept string names are likely to be more useful for simple applications, such as those that simply read in a name and look up the corresponding object.