Friday, March 13, 2009

What is Context and InitialContext? (JNDI)

Question :What is Context and InitialContext? (JNDI)
Answer :A context represents a set of bindings within a naming service. A Context
object provides the methods for binding names to objects and unbinding
names from objects, for renaming objects, and for listing the bindings.
JNDI performs all naming operations relative to a context.
The JNDI specification defines an InitialContext class. This class is
instantiated with properties that define the type of naming service in use
(such as provider URL, security, ID and password to use when connecting).

No comments: