setComponentContext(Context ctx) Associate this CompNamingContext with the current thread.
This method should be called before the call to the business method.
After, resetComponentContext should be called to reset the context.
Parameters: ctx - the context to associate to the current thread.
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.
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 unique instance of a NamingManager.
NamingManager the unique instance. throws: NamingException - if it failed.
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 before the call to the business method.
After, resetComponentContext should be called to reset the context.
Parameters: ctx - the context to associate to the current thread. Context the context of the thread