geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Noel J. Bergman" <n...@devtech.com>
Subject RE: [PATCH] Was: JSR77 component lifecycle
Date Wed, 13 Aug 2003 04:56:38 GMT
> We also need a good policy on what is containment.   It is pretty
> obvious that a WebApp is contained in a WebContainer is contained
> in a J2eeContainer.   But we don't want to have services contained
> by the JNDIService, just so they can get an initial context.

The container should provide a context (e.g., JNDI context) to the
contained.  The J2EE specification chapter on naming provides some input on
how part of the context is setup.  However, although Tomcat decides which
initial context to provide based upon the caller's classloader, other
containers might have a different policy.  For example, a matcher/mailet
container might configure a ThreadLocal before calling the servicing method.
The Avalon containment model is far more fine grained than the WebApp model.
In the WebApp model, java:comp/env contains all of the entries defined for
the webapp.  In the Avalon model, a component is given a context containing
exactly and only those objects that are intended for that component's use.

	--- Noel


Mime
View raw message