tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Thomas <ma...@apache.org>
Subject Re: Valves being converted to Filters?
Date Wed, 21 Oct 2009 12:10:02 GMT
Eric B. wrote:
> "Mark Thomas" <markt@apache.org> wrote in message 
> news:200910202047470000@265006334...
> 
>>> Although I love filters, I find that valves have a very specific need 
>>> within
>>> the container as well; it allows you to configure the container
>>> independently of the application.  If everything is moving to filters, 
>>> that
>>> would require me to modify the app everytime I want the container to 
>>> behave
>>> slightly differently.
>> Even without valves, there are lots of other ways to customize the 
>> container. You can also specify Filters at the global & host level (may 
>> also add engine to that list).
> 
> Really?  Does that exist already?  So far, the only place I know about where 
> I can configure filters are in the web.xml file(s) - both in the 
> application's web.xml and in the server's global web.xml.  Is there another 
> place / manner in which to configure a filter on a per-host basis?  Or is 
> this something that is only going to be available in a future release?

You can place web.xml.default and context.xml.default files in
$CATALINA_BASE/conf/<EngineName>/<HostName>/

Mark

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message