You have to setup httpsession replication and store your data in the HttpSession object.
> You have to setup httpsession replication and store
> your data in the HttpSession object.
HttpSession's are related to a particular user. What if I store some value in ServletContext and keep changing the value for each call. I was interested to know if ServletContext gets replicated, then, no matter to which server my request goes I get a unique value, and ofcourse assuming the access the synchronized...
What I can say for Catalina:
You cannot replicate the ServletContext because the ServletContext incorporates node-specific data (listeners etc.) that cannot be replicated.
What is wrong with using a normal HTTPSession like Sacha mentioned it?