> From: Sumit D [mailto:sumitd...@gmail.com]
> Subject: Re: Custom Valve
> 
> by the way, I could not find META-INF/context.xml. I create from
> scratch ?

Yes, create it if you need one.  Many webapps do not require the 
Tomcat-specific settings available via a <Context> element.

> Also, if I put the <Valve className="my.Valve">...........code in the
> server.xml of Tomcat, would'nt it work just like AccessLogValve ??

Yes, but it will apply to all sub-components of where you put the <Valve>.  
Placing it inside the <Context> element in the META-INF/context.xml file keeps 
it from affecting other webapps.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.


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

Reply via email to