aspose file tools*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes difference b/w container and webserver Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "difference b/w container and webserver" Watch "difference b/w container and webserver" New topic
Author

difference b/w container and webserver

Lavanya ch
Ranch Hand

Joined: Dec 16, 2004
Posts: 75
Hi ,
I just started my SCWCD preparation. i'm reading HFSJ. In the intial chpaters... somewhere they mentioned like Apache is the container and Tomcat is the webserver. But i didn't get the exact differnce between them. Any one could explain me what is that?

Thanks in advance.
B.Sathish
Ranch Hand

Joined: Aug 18, 2005
Posts: 372
What the book says is - Tomcat is more of a web-container. It also has limited web-server features. So if you want a web-container with only the basic web-server features, you can use Tomcat. But if you want a more powerful web-server(something like weblogic), but still want to use tomcat container, you could configure Tomcat with Apache where Tomcat acts as the web container and Apache acts as the web server
Lavanya ch
Ranch Hand

Joined: Dec 16, 2004
Posts: 75
Thanks Satish.
But somehow i'm not clear with it.what all can Container do apart frm WebServer?
Can anybody tel me the general differnece b/w container and webserver?(without taking the above example).
To my understanding... Container contains Webserver.and Container can do some tasks apart frm managing webserver? am i rt?
I was thinking all these while like container,server , engine are synonymous words.
B.Sathish
Ranch Hand

Joined: Aug 18, 2005
Posts: 372
See whether this makes sense to you. The container is a software program. Some of the main jobs of the container would be to create and initialize servlets, manage their life cycle, find out which resource should serve a client request, allocate a thread for each incoming request and manage web other web components like JSP's , filters (their life-cycle) etc.

When you think of a web-server, you need to think about HTTP. A web-server talks HTTP. You can think of the web server as receiving the HTTP request from the client (browser) and passing it to the container which would select the appropriate resource to serve the request. The container then returns the response from the resource to the web-server. The web-server would format the actual HTTP response (header and body) and send it to the client.

You do not need to be ovely concerned about these differences. From the next chapter onwards, the book uses only the word container (to mean both the container and the server)
Lavanya ch
Ranch Hand

Joined: Dec 16, 2004
Posts: 75
Now it's clear ThankU
I can go ahead in reading next chapters.
My probelm is... if i don't understand sth anywhere, that's it got stuck there. i can't move further. that's the reason i couldn't read next chapetrs.

anyway...Thanks for the clear explanation.

BTW, have u cleared SCWCD? if so.. how much time it will take for the preparation (assuming i read 2hrs daily and have some experience in JSPs and Servlets).
B.Sathish
Ranch Hand

Joined: Aug 18, 2005
Posts: 372
I am writing it next week. It took me around 1.5 months to finish HFSJ (2-3 hrs per day and 5-6 hrs per day in weekends )
Lavanya ch
Ranch Hand

Joined: Dec 16, 2004
Posts: 75
hey.. ur working hard.
Gud Luck for ur exam!
once ur done, don't forget to post ur experiences.
Vishnu Prakash
Ranch Hand

Joined: Nov 15, 2004
Posts: 1026
Hello Satish

WebLogic is not a Web Server but its an Application Server.

Bea's WebLogic is the market leader is Application Server space. It's were EJBs are deployed.

All the best for your exam.



Servlet Spec 2.4/ Jsp Spec 2.0/ JSTL Spec 1.1 - JSTL Tag Documentation
Lavanya ch
Ranch Hand

Joined: Dec 16, 2004
Posts: 75
weblogic is Application server for sure.
but it can act as a webserver too.
 
wood burning stoves
 
subject: difference b/w container and webserver