Communication between two web application in same server
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 webservice. Is there any other way similar to calling a method on class on same web application ?. Thanks. Yes. It is possible. It tried for same servlet container by using getServletContext().getContext() method. First you need to make changes in below file (Windows) C:\Program Files\Apache Software Foundation\Tomcat 7.0\conf\context.xml Set value of crossContext to true. context.xml <Context crossContext="true"> <!-- Default set