• 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

Need to write interceptor for non tomcat application.

 
Greenhorn
Posts: 15
Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi ,
My requirement is to create a kind of filter or interceptor which will log all the requests which are going to other webserver.
Say for example : our Fitnesse is running on localhost:80 and tomcat is running on localhost :9000.
Now client should not know that response is coming from Fitnesse. and meanwhile we want to log the request in tomcat servlet.
I tried using RequestDispatcher.include and forward but they are working for the same webappcontext.
Here context are changing so i tried using response.sendRedirect. its going on the Fitness server URL and its visible on the URL. But I think response which is going back to the client is not going through tomcat servelt.
Is there any way to achieve to log and incoming and outgoing request to pass and log in tomcat deployed servlet?

Thanks in advance.
 
Ranch Hand
Posts: 312
MS IE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Try using proxy servlet, to prevent application(s) specific information from being shared with the outside world. This is available as one of the modules in Apache project.
 
Arpan Raj
Greenhorn
Posts: 15
Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Madhan ,
Can you please suggest the name of the module?
 
This looks like a job for .... legal tender! It says so right in this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic