Got two applications running on tomcat:
- Application1 (JSP)
- Application2 (Webservices)
I want to set request parameter (User object, with information about current user) that is going out of the Application1 and when this request gets to Application2 I want to retrieve the parameter and change some local configurations in Application2.
I know I can filter the incoming request in Application2 by using Filter, but how can I filter the outgoing request in Application1?
I was able to accomplish my goal by implement a SOAPHandler class. I was able to intercept the SOAP message, add headers parameters and when that SOAP message arrived at Application2 I extracted those headers information implement the same SOAPHandler.