|
|||||||||
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 ContainerNaming
public javax.naming.InitialContext getCorbaInitialContext()
public javax.naming.Context createEnvironmentContext(java.lang.String namespace) throws javax.naming.NamingException
createEnvironmentContext
in interface ContainerNaming
org.objectweb.jonas_lib.naming.ContainerNaming
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 getComponentContext()
getComponentContext
in interface ContainerNaming
org.objectweb.jonas_lib.naming.ContainerNaming
public javax.naming.Context setComponentContext(javax.naming.Context ctx)
setComponentContext
in interface ContainerNaming
org.objectweb.jonas_lib.naming.ContainerNaming
ctx
- Context to associate with the current thread.public void setComponentContext(javax.naming.Context ctx, java.lang.ClassLoader cl)
setComponentContext
in interface ContainerNaming
ctx
- 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 ContainerNaming
cl
- 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
ContainerNaming
createImmutableEnvironmentContext
in interface ContainerNaming
org.objectweb.jonas_lib.naming.ContainerNaming
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 getServerContext()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |