Forums Register Login

Does container use its own VM?

+Pie Number of slices to send: Send
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!
+Pie Number of slices to send: Send
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!
+Pie Number of slices to send: Send
 

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.
+Pie Number of slices to send: Send
Thanks Devaka!
Space pants. Tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 904 times.
Similar Threads
AXIS-JAVA2WSDL ClassNotFoundException
EJB JVM and Servlet JVM
HttpSession migration
Init & Destroy
Eclipse Out of memory error
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 06:52:57.