• 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
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

Is Tomcat an Application Server or Webserver

 
Ranch Hand
Posts: 167
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all
Is Tomcat an Application Server or Webserver what is the main difference
between them please explain?

Thanks in advance
saiprasanna
 
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The short answer is "Both".

Tomcat is a servlet container that can also be run as a standalone webserver.

The distinctions between these terms is a bit blurry but here is
a rough description.
  • Appserver: Java term for an application that runs J2EE applications.

  • This includes EJB, Servlets, JNDI, JSP, and more..
  • Servlet Container: The part of an appserver that handles Servlets (most have JSP compilers built in With some, you have to pay more for this).
  • Webserver: An application running on a machine that handles HTTP requests.

  • Originally, these only handled static files and maybe CGI scripts.


    Tomcat can either be bound to an external webserver (such as Apache HTTPD or Microsoft IIS) but can also run as a stand-alone Webserver/Servlet container/JSP engine. It can also be embedded into a full Appserver such as JBoss.
     
    Ranch Hand
    Posts: 133
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • Quote
    • Report post to moderator
    I think it only qualifies as a web container. Here you can find more info about a web container. Web Container

    [Bear edit: fixed gnarly formatting issues]
    [ December 04, 2005: Message edited by: Bear Bibeault ]
     
    Sheriff
    Posts: 67750
    173
    Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • Quote
    • Report post to moderator
    You can certainly call it a web container. But that doesn't mean you cannot call it anything else; the terms are not precisely defined.
     
    I’m tired of walking, and will rest for a minute and grow some wheels. This is the promise of this tiny ad:
    We need your help - Coderanch server fundraiser
    https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
    reply
      Bookmark Topic Watch Topic
    • New Topic