« Return to Thread: Custom Valve

RE: Custom Valve

by Caldarale, Charles R :: Rate this Message:

Reply to Author | View in Thread

> From: Sumit D [mailto:sumitd.10@...]
> 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-unsubscribe@...
For additional commands, e-mail: users-help@...

 « Return to Thread: Custom Valve