All,
I have 2 web applications, Web1 and Web2, deployed on my tomcat server. I want classes in Web1 to call methods on classes in Web2. One way to do this is using
Just searched around some articles and the above scenario is certainly possible using CrossContext switching in Tomcat.
CrossContext
Set the following element in context.xml in
And then getServletContext().getContext("/Web2");.
getServletContext().getContext("/Web2");
Haven't tried yet, though.