Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

3 tier architecture

 
Thomas Andrewsen
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hai All,
In 3 tier architecture, where is the presentation layer, is it on the server side or client side. Beacuse in J2EE framework, we are using jsp/servlet to create the presentation which is viewed by the client browser, in which tier does the client's browser comes? If presentation(jsp/servlet) comes in server side, then what tier is in client side?
 
ankur rathi
Ranch Hand
Posts: 3830
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Thomas Andrewsen:
Hai All,
In 3 tier architecture, where is the presentation layer, is it on the server side or client side. Beacuse in J2EE framework, we are using jsp/servlet to create the presentation which is viewed by the client browser, in which tier does the client's browser comes? If presentation(jsp/servlet) comes in server side, then what tier is in client side?


In three tier architecture, browser is one of the tier which displays the presentation.
Second tier is application server and third tier is DB server.
 
Tauri Valor
Ranch Hand
Posts: 181
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hai All,
In 3 tier architecture, where is the presentation layer, is it on the server side or client side. Beacuse in J2EE framework, we are using jsp/servlet to create the presentation which is viewed by the client browser, in which tier does the client's browser comes? If presentation(jsp/servlet) comes in server side, then what tier is in client side?




Presentation comes on Client side.

Business Logic implementation comes in Application Tier. Here theres a sublayer called control-layer which interfaces between presentation and application..
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can expect lots of different answers for this one.

In a large J2EE app the entire servlet app is generally considered the presentation layer. Written correctly, you should also be able to use the business and persistance layers with a Swing (or other) presentation layer.

Well written servlet apps will also be broken up into the three MVC tiers (Model, View, Controller).

The lines between tiers are not always etched in stone.
In the majority of large business apps I've seen, the bulk of the business logic is written with stored procedures in the database. With AJAX taking off, we can expect these lines to get even fuzzier.

I just sat through a demo for a RAD product implemented almost entirely in VBScript executed in the browser. The webserver is nothing more than a conduit for passing AJAX calls back to the database where all the business logic is written stored procedures (2 tiers). The product was very slick.
 
Stan James
(instanceof Sidekick)
Ranch Hand
Posts: 8791
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Layered architectures can be nested or recursive, too. The browser might well have three tiers, too: A GUI layer, a DOM layer holding the data, and a communication / data layer.

These layers are not all that clearly defined across the world. We have one group who calls IHS Presentation and anything running Java is Application.

HERE are a few pages I put together re layering, with some links to neat stuff at Ratio, too.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic