File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes is one jvm present for a web container Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "is one jvm present for a web container" Watch "is one jvm present for a web container" New topic

is one jvm present for a web container

sai prasanna
Ranch Hand

Joined: May 02, 2005
Posts: 167
web container can contain more than one or one web application. to execute a web application we need jvm will the jvm be one for each web application or only one jvm for a container.anybody please explain this

thanks in advance
Mohan Reddy

Joined: Feb 10, 2006
Posts: 21

Only one jvm will work for Web Container. Even though there are more than one application in a container, those will be executed with the help of one JVM.

cheers<br /> <br />mohan.<br /> <br /><br />Always do what you are afraid to do...
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 39549
It's worth noting that there will generally be a separate classloader for each web app. That way the applications can't access each others static data, and it makes it easier to use security managers to separate them further.

Ping & DNS - updated with new look and Ping home screen widget
I agree. Here's the link:
subject: is one jvm present for a web container
Similar Threads
default and non-default servlet context
total servlet instance in distributable enviornment
Web Container
ServletContext Confusion...
JVM vs Web container architecture.