On Thu, 2003-07-03 at 12:36, Stephen McConnell wrote:
> 
> I have not tried to do this but this is what I'm thinking:
> 
>    1. listener gets creation event
>    2. listener get classname of the servlet
>    3. listener reads in meta-info from descriptor
>       corlocated with servlet class
>    4. listener gets meta-data from its own configuration
>       or some external source
>    5. listener builds artifacts form lifecycle processing
>       of the servlet and applies stages (e.g. servicing
>       of the servlet)
>    5. listener intercepts destroy even and handles
>       decommissioning of the artifacts conosumed by the
>       servlet
> 
> Has anyone tried anything like this?

My only question is about step number 2 -- how do we get the classname?

If I understand correctly the ServletContextListener only gives us an
instance of the the servlet context and even then, only gives it to us
on the creation of the web application.

Although this would be a better way to get the service manager into the
ServletContext (compared to the little extended Struts Servlet I wrote).

Also, for those not familiar with ServletContextListeners, I found this
short article:


http://www.onjava.com/pub/a/onjava/2001/04/12/listeners.html?page=1

-- 
  jaaron    <http://jadetower.org>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to