Intercept another web application requests

你。 提交于 2020-01-06 06:17:20

问题


I have 2 ear application (Primary and Proxy). The primary application is build using Servlet JSP MVC.

Now, I want to create a Proxy application (ear app) to listen and log all the requests and response going and coming from the Primary application.

I cannot modify the Primary application, have only control on the Proxy application that I am writing.

Can I write a simple Servlet Filter to listen all the requests on my primary application.

Note: Both the applications will run in WAS, may be same ports can be configured.

I WILL RECEIVE THE REQUESTS ONLY on my PRIMARY APPLICATION. Hence I feel using RequestDispatcher may not be the appropriate one. Kindly advice.

来源:https://stackoverflow.com/questions/56398286/intercept-another-web-application-requests

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!