Naming Manager for an EJB Server. this singleton class must exist in each
jonas server.
author: Philippe Durieux author: Philippe Coq : Monolog author: Florent Benoit & Ludovic Bert : Context for web container
getComponentContext(ClassLoader cl) Return the CompNamingContext associated with the given classloader.
Parameters: cl - the classloader which is bind to the context.
Create Context for application and component environments. (formally
known as createComponentContext)
Parameters: namespace - namespace to used for the Context a java: context with comp/ subcontext throws: NamingException - if the creation of the java: context failed.
Create Immutable Context. Not implemented !
Parameters: namespace - namespace to used for the Context Context an immutable context throws: NamingException - if the creation of the java: context failed.
Get the Context associated with the current thread or to a class loader
Context the component context. throws: NamingException - When operation is not allowed
Return the CompNamingContext associated with the given classloader.
Parameters: cl - the classloader which is bind to the context. the CompNamingContext associated with the given classloader.
Get the server component context. This is used only internally in the
jonas NamingManager.
Context the server component context.
resetComponentContext
public void resetComponentContext(Context ctx)(Code)
Set back the context with the given value.
Don't return the previous context, use setComponentContext() method for this.
Parameters: ctx - the context to associate to the current thread.
setClientContainerComponentContext
public void setClientContainerComponentContext(Context ctx)(Code)
Set the context used by client container (per JVM instead of per thread)
Parameters: ctx - the context to set
Associate this CompNamingContext with the current thread. This method
should be called in preinvoke/postinvoke and when we build the bean
environment or web environment.
Parameters: ctx - the context to associate to the current thread. Context the context of the thread
Associate the specified CompNamingContext with the given classloader.
Parameters: ctx - the context to associate to the classloader. Parameters: cl - the classloader which is bind to the context.