Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Container OR Server ?

 
upul indrajith
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is Tomcat is a container or is it a server..... Whats the different between a container and a server. What are the services provide by the server to its containers ?
 
saurabh.u saraswat
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Tomcat is a web container.
and for it to act as a HTTP server, Apache and Tomcat are configured together..with apache as a HTTP web server and Tomcat as a Web Container.
 
upul indrajith
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can a web server have more than one container ? what are the services provide by the server to its container ?
 
Michael Ku
Ranch Hand
Posts: 510
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think this question is in the wrong forum...
 
saurabh.u saraswat
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A web server, as per my understanding, has only a web container.
On the other hand, the J2EE application server should have web container and the EJB container.


As far as the 2nd question goes: the services provide by the server to its container?
I think the container provides service to the server: by properly processing the requests which has a dynamic response. The only thing done by the web server is to forward the specific requests to the container.
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!