I am interested to ask… Is it possible to keep session between TWO war(s) on ONE web server.
For example there are
- A) war file A
-
B) war file B
war file A has
…
String aText="Hello World";
session.setAttribute("anAttribute",aText);
…
so my question is… Can I call code like a
String fromAWarFile=session.getAttribute("anAttribute");
… from war file B to get “Hello World” value of war file A?
Any useful comment is appreciated
I think what you are looking for is session clustering http://www.ibm.com/developerworks/java/library/j-jtp07294/index.html, I think all the major servlet containers support this.
Here is the documentation from tomcat http://tomcat.apache.org/tomcat-6.0-doc/cluster-howto.html