Professional Documents
Culture Documents
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"
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.
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