• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Difference between Container and Server

 
Mitesh Khapra
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
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,
Mitesh.
 
john guthrie
Ranch Hand
Posts: 124
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic