Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Tomcat Users »

Re: Is it possible to intercept all requests and be serviced by a ser vlet?

QM

2004-05-17

Replies:

On Mon, May 17, 2004 at 10:19:29PM -0400, Chippada, Sreeni wrote:
:    I am using Tomcat 5. I need all the requests be serviced by a
: particular servlet irrespective of the web apps deployed. Is there a way to
: do it?

Have you tried putting it in the global web.xml? Not
 {context}/WEB-INF/web.xml

I mean the one in
 {tomcat install}/conf/web.xml


What that means as far as classloading issues, and whether all webapps
will see the *same instance* of that servlet class, I can't tell you...
but I'm sure that's in the docs.


A more portable solution would be to just include that same servlet in
each webapp, but you know your app/setup better than I...

-QM

--

software -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)

©2008 junlu.com - Jax Systems, LLC, U.S.A.