Forums Register Login

Need to write interceptor for non tomcat application.

+Pie Number of slices to send: Send
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.
+Pie Number of slices to send: Send
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.
+Pie Number of slices to send: Send
Thanks Madhan ,
Can you please suggest the name of the module?
Your mind is under my control .... your will is now mine .... read this tiny ad
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 1271 times.
Similar Threads
Client slow to process - help!
Tomcat4.0.1 : Problem running servlets
Tomcat4.0.1 : Problem running servlets
File Upload Problem with WAS 4.0.1
Using tomcat as proxy for non Tomcat application.
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 16:27:44.