• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

difference b/w container and webserver

 
Pallavi ch
Ranch Hand
Posts: 76
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 372
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Pallavi ch
Ranch Hand
Posts: 76
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 372
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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)
 
Pallavi ch
Ranch Hand
Posts: 76
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 372
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 )
 
Pallavi ch
Ranch Hand
Posts: 76
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hey.. ur working hard.
Gud Luck for ur exam!
once ur done, don't forget to post ur experiences.
 
Vishnu Prakash
Ranch Hand
Posts: 1026
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

 
Pallavi ch
Ranch Hand
Posts: 76
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
weblogic is Application server for sure.
but it can act as a webserver too.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic