|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--org.objectweb.jonas.naming.NamingManager
Naming Manager for an EJB Server. this singleton class must exist in each jonas server.
| Method Summary | |
javax.naming.Context |
createEnvironmentContext(java.lang.String namespace)
Create Context for application and component environments. (formally known as createComponentContext) |
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.InitialContext |
getCorbaInitialContext()
return the initialContext used to bind CORBA objects |
java.util.Hashtable |
getEnv()
Return the environment for JNDI This is used only for handles today. |
javax.naming.InitialContext |
getInitialContext()
return the initialContext used in this jonas server |
static NamingManager |
getInstance()
|
javax.naming.Context |
getServerContext()
gets the server component context This is used only internally in the jonas NamingManager. |
javax.naming.Context |
setComponentContext(javax.naming.Context ctx)
associate this CompNamingContext with the current thread. this method should be called in preinvoke/postinvoke and when we build the bean environment. |
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. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public static NamingManager getInstance()
throws javax.naming.NamingException
public javax.naming.InitialContext getInitialContext()
getInitialContext in interface ContainerNamingpublic javax.naming.InitialContext getCorbaInitialContext()
public javax.naming.Context createEnvironmentContext(java.lang.String namespace)
throws javax.naming.NamingException
createEnvironmentContext in interface ContainerNamingorg.objectweb.jonas_lib.naming.ContainerNamingnamespace - 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 getComponentContext()
getComponentContext in interface ContainerNamingorg.objectweb.jonas_lib.naming.ContainerNamingpublic javax.naming.Context setComponentContext(javax.naming.Context ctx)
setComponentContext in interface ContainerNamingorg.objectweb.jonas_lib.naming.ContainerNamingctx - Context to associate with the current thread.
public void setComponentContext(javax.naming.Context ctx,
java.lang.ClassLoader cl)
setComponentContext in interface ContainerNamingctx - the context to associate to the classloader.cl - the classloader which is bind to the context.public void unSetComponentContext(java.lang.ClassLoader cl)
unSetComponentContext in interface ContainerNamingcl - the classloader which is bind to the context.public java.util.Hashtable getEnv()
getEnv in interface ContainerNaming
public javax.naming.Context createImmutableEnvironmentContext(java.lang.String namespace)
throws javax.naming.NamingException
ContainerNamingcreateImmutableEnvironmentContext in interface ContainerNamingorg.objectweb.jonas_lib.naming.ContainerNamingnamespace - 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 getServerContext()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||