• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Servlet program for all web applications- web mining

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All

I'm new to Java World. Sorry if i'm asking somthing wrong.

I'm asked to write a Servlet program for all web applications deployed on Apache-Tomcat which will give analysis just like web mining.

Can anybody suggest how can i write a single servlet which will keep a track of all requests for all deployed applications

Thanks
Saheb
[ April 27, 2008: Message edited by: Sachin Saheb ]
 
Sheriff
Posts: 67747
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Sachin Saheb:
I'm new to Java World. Sorry if i'm asking somthing wrong.


Nothing wrong, but that's pretty vague. If you have specific questions, you've got a better shot at getting answers.

Also, please take the time to post more carefully. "wen mining"?

It sounds like you need to get up-to-speed with web applications and Servlets using a few less aggressive projects before tackling this one.
 
Ranch Hand
Posts: 149
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You can create a custom Tomcat Valve to intercept requests to all web applications. It should be specified in /conf/server.xml file and it looks like:



Here is an example of a custom valve.
[ April 27, 2008: Message edited by: Maris Orbidans ]
 
reply
    Bookmark Topic Watch Topic
  • New Topic