When a web application is marked as distributable, the HttpSession is scoped to the web container's VM, while the ServletContext is scoped to the particular VM servicing requests.
Is that true or false?
These things I know. HttpSession is one per web application and client. And ServletContext is one per VM. But what about the answer? I need explanation.
Abimaran Kugathasan wrote: I was thinking the container use the underlying OS's VM to process.
Generally, there is no JVM in the OS for supporting the upper layer applications. JRE and JVM are two different things. A JVM is typically started with an application, and thus a servlet container runs on a separate JVM.
The given quote of the question sounds incorrect. There are multiple virtual machines in the distributed environments and the HttpSession object is distributed among them.