title: Is it possible to access a public method of a java web application from another java web application?
body: <p>If I have a web application with a class that contains a public method that returns data when called, is it possible to call such a method from another web application residing in the same server? Or do I have to use web services?</p>