You are on page 1of 3

Apache Tomcat is an open-source web server and servlet container developed by

the Apache Software Foundation (ASF). Tomcat implements several Java EE


specifications including Java Servlet, JavaServer Pages (JSP), Java EL, and
WebSocket, and provides a "pure Java" HTTP web server environment for Java code
to run in

Apache Tomcat is an open-source web server and servlet container developed by


the Apache Software Foundation (ASF). Tomcat implements several Java EE
specifications including Java Servlet, JavaServer Pages (JSP), Java EL, and
WebSocket, and provides a "pure Java" HTTP web server environment for Java code
to run in

If you are developing a web application something like Quora. This app should be accessible to
the out side world through the Internet or Intranet. So you develop application in your system.
To access your application to the outside world you need a server. That server can be your
Apache Tomcat.
To access the application from the outside world, it needs HTTP protocol so all this
HTTP protocol are implemented inside Tomcat Server. So it automatically take care of handling
"Request" and "Response"

A Java web application is a collection of dynamic resources (such as Servlets,


JavaServer Pages, Java classes and jars) and static resources (HTML pages and
pictures).

JavaServer Pages (JSP) is a technology that helps software developers create


dynamically generated web pages based on HTML, XML, or other document types.
Released in 1999 by Sun Microsystems, JSP is similar to PHP and ASP, but it uses
the Java programming language.

1.Web application is deployed in Web server which has web container


Web application - JSP, Servlet, Java
2.web apps are programs which created to run in a web browser.

1.Enterprise App is deployed in Application server which has Web container, EJB
container, set up for messaging services etc.
EE app. - JSP, Servlet, Java, EJB, Web Services, JMS
2.enterprise app is an integrated program which usually used in a large companies

An enterprise application will contain enterprise beans(session/entity beans) and will run
in a J2EE Container which provides transaction and security services to the beans and it
will be named as .ear file. Whereas a web appliaction executes in a web-container like
tomcat, contains servlets/jsps alone and named with an extension of .war.

An Enterprise application runs in a Special container called enterprise container which


have special features like JMS,Transaction etc. This containers can also handles web
application.
Eg : Bea Weblogic, IBM WebSphere, Oracle IAS, JBOSS etc.
Web application runs in web container. This containers won't have special fetaures like
transaction, JMS etc..
Eg : Tomcat,JavaWebserver

1) the client tier; this tier runs a browser or some other client Java code.
2) the web tier; this tier runs your web server or Servlet container that sends
pages of html or other data to the first tier.
3) the business logic tier: this tier runs your enterprise Java beans, your
database connectivity code etc. This tier communicates with the second tier.
All together these tiers make up an 'enterprise application'; when you leave
out the third tier you have a 'web based' application. The first tier by itself is
just a desktop application if more than a browser is used.
Those second and third tiers have gone through many incarnations already;
each claiming to be the final solution to it all. IMHO exactly the same mess as

from their previous instantiations lives on in the latest instantiations with


more 'technologies' and more 'frameworks' and more trouble
2)

You might also like