|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Provide naming services for Web and EJB containers. Containers use this interface for binding the environment entries, remote object references, resource factories and for managing the naming context of the current thread.
Method Summary | |
javax.naming.Context |
createEnvironmentContext(java.lang.String namespace)
Create context for application and component environments. |
javax.naming.Context |
createImmutableEnvironmentContext(java.lang.String namespace)
Create immutable context for application and component environments. |
javax.naming.Context |
getComponentContext()
Return the Context associated with the current thread. |
java.util.Hashtable |
getEnv()
return the environment associated to this initial context |
javax.naming.InitialContext |
getInitialContext()
Get the initial context |
javax.naming.Context |
setComponentContext(javax.naming.Context ctx)
Aassociate this Context with the current thread. |
void |
setComponentContext(javax.naming.Context ctx,
java.lang.ClassLoader cl)
Associate the specified CompNamingContext with the given classloader. |
void |
unSetComponentContext(java.lang.ClassLoader cl)
Remove the CompNamingContext associated with the given classloader. |
Method Detail |
public javax.naming.Context createEnvironmentContext(java.lang.String namespace) throws javax.naming.NamingException
namespace
- Subcontext name(s) to create under Server Root.
Usually consists of application name + component name.
Examples: "App1/WebWar1" for Web Application "App1/EJBJar1/EJBName" for ejb in Enterprise Application.
javax.naming.NamingException
- If exception encountered creating namespace.public javax.naming.Context createImmutableEnvironmentContext(java.lang.String namespace) throws javax.naming.NamingException
namespace
- Subcontext name(s) to create under Server Root.
Usually consists of application name + component name.
Examples: "App1/WebWar1" for Web Application "App1/EJBJar1/EJBName" for ejb in Enterprise Application.
javax.naming.NamingException
- If context namespace does not exist.public javax.naming.Context getComponentContext()
public javax.naming.Context setComponentContext(javax.naming.Context ctx)
ctx
- Context to associate with the current thread.public void setComponentContext(javax.naming.Context ctx, java.lang.ClassLoader cl)
ctx
- the context to associate to the classloader.cl
- the classloader which is bind to the context.public void unSetComponentContext(java.lang.ClassLoader cl)
cl
- the classloader which is bind to the context.public javax.naming.InitialContext getInitialContext()
public java.util.Hashtable getEnv()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |