I have two Struts applications running on one Tomcat server. I am wondering if application A can access an application-scoped variable that is declared in the application B. I am asking because I am afraid that there might be some conflicts that will happen if ever some application-scoped variables were given the same names.
The name "application-scoped" hints that the scope of the attribute is, well, the application. So there's no interference with any other application.
Ping & DNS - updated with new look and Ping home screen widget
Joined: May 18, 2006
Thanks for pointing that out. However, I guess I need a more technical explanation of why that is the case. I had experiences with other servers before where application-contexts are shared to other applications. I guess this might not be the case with a server like Tomcat.
Originally posted by Eugene Abarquez: I need a more technical explanation of why that is the case.
The J2EE specification was designed specifically so that applications could not interfere with one another. This is primarily a security issue. Suppose you had Company A and Company B with applications running on the same 3rd party server such as one run by an ISP. It would not be a good idea to allow Company B to snoop into data from Company A's application.