|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | 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. |
javax.naming.Context |
getComponentContext(java.lang.ClassLoader cl)
Return the CompNamingContext associated with the given classloader. |
java.util.Hashtable |
getEnv()
|
javax.naming.InitialContext |
getInitialContext()
Gets the initial context |
void |
resetComponentContext(javax.naming.Context ctx)
Set back the context with the given value. |
void |
setClientContainerComponentContext(javax.naming.Context ctx)
Set the context used by client container (per JVM instead of per thread) |
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() throws javax.naming.NamingException
javax.naming.NamingException
- If context namespace does not exist.public javax.naming.Context setComponentContext(javax.naming.Context ctx)
ctx
- Context to associate with the current thread.
public void resetComponentContext(javax.naming.Context ctx)
ctx
- the context to associate to 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 setClientContainerComponentContext(javax.naming.Context ctx)
ctx
- the context to setpublic javax.naming.Context getComponentContext(java.lang.ClassLoader cl)
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: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |