This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Java Interview Guide and have Anthony DePalma on-line!
See this thread for details.
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Difference between Container and Server Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "Difference between Container and Server" Watch "Difference between Container and Server" New topic

Difference between Container and Server

Mitesh Khapra

Joined: Oct 25, 2004
Posts: 6
I had posted this earlier but did not get any reply so am posting it again. Somebody please help!!!
I was reading the second chapter of "HF-Serlets and JSP" and came across the terms "container" and "server". Till now my understanding was that a server itself controls the life cycle of a servlet. But here it is mentioned that the life cycle is controlled by a container. Can somebody please clear the following doubts related to container and server:-

1. Do they run in the same JVM or different JVM
2. Can somebody please tell me what is a "container" and what is a "server" in the context of IBM's Websphere.

Thanks and Regards,
john guthrie
Ranch Hand

Joined: Aug 05, 2002
Posts: 124
my understanding is that the container is more of a concept. servlets run in a servlet container, and no real documentation should be mentioning a server. a server is, in a way, an implementation of a container, although a server could do much more.
I agree. Here's the link:
subject: Difference between Container and Server
It's not a secret anymore!