Name
InitialContext
Synopsis
This class represents the starting point for accessing a naming
system. Typically, you set the value of the
java.naming.factory.initial
property (represented by the constant
Context.INITIAL_CONTEXT_FACTORY
) to the fully qualified package name
of a factory class in a JNDI service provider. This factory class
creates an InitialContext
that is appropriate for the naming system
you are using.
public class InitialContext implements javax.naming.Context { // Public Constructors public InitialContext() throws NamingException; public InitialContext( java.util.Hashtable environment) throws NamingException; // Protected Constructors protected InitialContext( boolean lazy) throws NamingException; // Methods Implementing Context public Object addToEnvironment(String propName, Object propVal) throws NamingException; public void bind(String name, Object obj) throws NamingException; public void bind(javax.naming.Name name, Object obj) throws NamingException; public void close() throws NamingException; public String composeName(String name, String prefix) throws NamingException; public javax.naming.Name composeName( javax.naming.Name name, javax.naming.Name prefix) throws NamingException; public javax.naming.Context createSubcontext( javax.naming.Name name) throws NamingException; public javax.naming.Context createSubcontext( String name) throws NamingException; public ...
Get Java Enterprise in a Nutshell, Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.