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

3 tier architecture

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Ranch Hand
Posts: 3852
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 181
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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..
 
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
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.
 
(instanceof Sidekick)
Posts: 8791
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
reply
    Bookmark Topic Watch Topic
  • New Topic