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

Win a copy of REST with Spring (video course) this week in the Spring forum!
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: 42959
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.
I agree. Here's the link:
subject: is one jvm present for a web container
It's not a secret anymore!