Difference Between Web Container and Web Server

What is the Difference Between Web Container and Web Server?
(Asked in Polaris Interview , held on April 11, Chennai)

Questions by khadarzone   answers by khadarzone

Showing Answers 1 - 0 of 0 Answers

smartguy

  • Apr 14th, 2008
 

The Webserver: Just Receive the request from the client and forward to Webcontainer, and do the Response vice versa.

Web Container: Creates HTTP Request and Response for the Servlet, calls the appropriate servlet service method (doGet or doPost) to service the client request.

Container also gives: Communication support(socket creation), Servlet life cycle management (Init(), Service() and Destroy()), Multithreading support, Declarative security(thru deployment descriptor) and  JSP support.

Source: Head First Servlet & JSP (SCWCD)

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions