> From: Subscriber [mailto:[EMAIL PROTECTED] 
> I would like to know if it is possible to disable a servlet 
> within a web 
> application while it is running. My scenario is, that I would like to 
> turn on/off different features in my webapplication. These 
> features are 
> implemented as servlets and therefore be able to turn them on and off 
> with disabling/enalibng the servlet corresponding to the feature. 

A Tomcat-specific solution: Implement a Valve that intercepts all
incoming requests (it has to be a tomcat-specific Valve rather than a
Filter, because Filters are per-webapp).  In that Valve, examine the
request URL, determine which servlet it maps to, check whether then
servlet is presently enabled or not, then either pass the request in or
display an appropriate message.

                - Peter

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to