File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Valve Processing in Tomcat

 
Mohit Vashishta
Greenhorn
Posts: 7
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

Can anyone throw some light on valve processing done by Tomcat as a part of Request processing?

Thanks in advance any help will be highly appreciated.

Thanks,
Mohit
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I would start by reading this:
http://tomcat.apache.org/tomcat-6.0-doc/config/valve.html

Then I would go through the configuration documentation to see how to configure a valve a the Engine, Host, or Context level.
Then, if I were still interested in writing one, I would take a look a the source code to the pre-written valves that ship with Tomcat and are covered in this page.

If you tell us what you're trying to accomplish, someone might be able to offer another alternative.
 
Mohit Vashishta
Greenhorn
Posts: 7
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Ben for your reply.

I'm trying to upgrade from Tomcat 5.0 to Tomcat 5.5 which has been written in embedded mode.The Problem I'm facing is that my application uses an interface ValveContext which is missing from Tomcat 5.5. Any idea how can i get this functionality (provided by ValveContext) with Tomcat5.5.

The invokeNext(request,respone) method of ValveContext interface is used to invoke next valve in the pipeline.

Thanks,
Mohit
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic