wood burning stoves 2.0*
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 Murach's Java Servlets and JSP this week in the Servlets 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: 41089
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 - my free Android networking tools app
subject: is one jvm present for a web container
Similar Threads
JVM vs Web container architecture.
Web Container
default and non-default servlet context
ServletContext Confusion...
total servlet instance in distributable enviornment