Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

A servlet runs in a web-server??  RSS feed

 
Soni Prasad
Ranch Hand
Posts: 97
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"A servlet runs in a web-server."
Is the above statement right or wrong?
 
Praful Thakare
Ranch Hand
Posts: 643
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I guess it runs in servlet container...


-Praful
 
Soni Prasad
Ranch Hand
Posts: 97
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do you mean web-server is not a servlet container??
 
Praful Thakare
Ranch Hand
Posts: 643
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
IF we talk in detail then NO.

for example apache is web-server, capable of handling request for static files like HTLM,but for http request and response it takes help of
Servlet container(ex tomcat).

N extra info: Application server consists of web-server and servlet container (EJB container) (ex:- weblogic).


Kindly correct me, if I am giving wrong info.


Cheers
-Praful
 
Sripathi Krishnamurthy
Ranch Hand
Posts: 232
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Web Servers (Web Servers are dedicated to serving web pages. Their functionality is extended by integrating CGI, scripting engines, and Servlet containers, to provide processing power and access databases, mail servers, and directory systems.)

Servlet Containers (These servers provide Java Servlet support as well as being web servers themselves. They are frequently integrated with a standard web server.)

Application Servers (Application servers provide specialized functions such as EJB, messaging, and transaction monitoring. Application servers operate in the middle tier supplying the business logic and heavy duty processing for a larger application.)

taken from http://www.dynamic-apps.com/servers.jsp
 
Jeroen Wenting
Ranch Hand
Posts: 5093
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Servlet containers aren't required to operate inside (or alongside) a webserver of any kind.
The servlet specification doesn't enforce any specific protocol for data transfer.

But in practice HTTP is the most commonly used protocol and webserver integration is standard.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!