• 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 ...
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Junilu Lacar
  • Liutauras Vilda
  • Paul Clapham
  • Jeanne Boyarsky
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
  • Jesse Duncan
  • Frits Walraven
  • Mikalai Zaikin

General Queries for a J2EE Web Application

Ranch Hand
Posts: 143
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have the following queries for a J2EE application. Appreciate your inputs on these.

1. What is the difference between Layer and Tier?

2. If we deploy the whole application like JSP, HTML, Servlets, Business Logic (POJOs), DAOs etc in one jar file, can we say that it uses multi-tier architecture or it is just one tier?

3. Does the definition of tier bound to the number of different servers the components deployed to? For Example, Servlets/JSP deployed to web server - Presentation Tier, Business Logic on App Server - Business Tier, Legacy DB - Data Tier? Or it is irrespective of the number of servers the application is deployed to?
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

1. Difference between Tier and Layer:
Tier is physical separation, Seperate server machine for Application server, Database and web. Each physical machine is Tier. On other hand the term layer will be used to represent level of separation of your class structures. Your DAO will be a layer, BO will be layer, Action classes will be layer.

2. No, Please refer my answer to previous question.

3. Yes

Gravity is a harsh mistress. But this tiny ad is pretty easy to deal with:
Free, earth friendly heat - from the CodeRanch trailboss
    Bookmark Topic Watch Topic
  • New Topic