Friday, 27 February 2015

Is it possible to read the data of a web application from another web application ?

Yes. 
It possible by using the getContext() method. It gives ServletContext object of that web application into our current web application.
            ServletContext ctx = getServletContext();

            ServletContext ctx2 = ctx.getContext(“webapp_name”);

No comments:

Post a Comment