• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

A servlet runs in a web-server??

 
Ranch Hand
Posts: 97
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
"A servlet runs in a web-server."
Is the above statement right or wrong?
 
Ranch Hand
Posts: 645
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Do you mean web-server is not a servlet container??
 
Praful Thakare
Ranch Hand
Posts: 645
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 232
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 5093
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
reply
    Bookmark Topic Watch Topic
  • New Topic