• Post Reply Bookmark Topic Watch Topic
  • New Topic

Does container use its own VM?

 
Abimaran Kugathasan
Ranch Hand
Posts: 2066
Clojure IntelliJ IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In Whizlabs exam, I came across the word container VM. Is there any thing such that? I was thinking the container use the underlying OS's VM to process. What is the real?

Thanks!
 
Abimaran Kugathasan
Ranch Hand
Posts: 2066
Clojure IntelliJ IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is the question :
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.

Thanks!
 
Devaka Cooray
Marshal
Posts: 5174
489
Chrome Eclipse IDE Google App Engine IntelliJ IDE jQuery Postgres Database Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Abimaran Kugathasan
Ranch Hand
Posts: 2066
Clojure IntelliJ IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Devaka!
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!