This week's book giveaway is in the Other Languages forum.
We're giving away four copies of Functional Reactive Programming and have Stephen Blackheath and Anthony Jones on-line!
See this thread for details.
Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Need to write interceptor for non tomcat application.

 
Arpan Raj
Greenhorn
Posts: 15
Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • 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.
 
Madhan Sundararajan Devaki
Ranch Hand
Posts: 312
Java MS IE
  • Mark post as helpful
  • send pies
  • 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
  • Quote
  • Report post to moderator
Thanks Madhan ,
Can you please suggest the name of the module?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic