This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Architect Certification (SCEA/OCMJEA) and the fly likes 2 or 3 tier architecture Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Certification » Architect Certification (SCEA/OCMJEA)
Bookmark "2 or 3 tier architecture" Watch "2 or 3 tier architecture" New topic

2 or 3 tier architecture

Joe O'Toole
Ranch Hand

Joined: Mar 02, 2009
Posts: 51

If I use a JSP for presentation and a servlet for business logic and store the data in a database - this is a 2 tier architecture right?

My understanding of the concept tier is that it relates to the physical structuring of the application. In the above example the JSP and servlet would reside in the same place (web server) - this would mean I only have 2 tiers: Web Server and Database. Sound right?

Marcelo Ortega
Ranch Hand

Joined: May 31, 2005
Posts: 519

Hi Joe,

I guess it depends if you consider the "Client tier" in your architecture or not. This would normally be a browser thin client - but it can definetely be considered as a tier.

Client tier --> Web/Business logic tier --> Data tier

Tiers can be either physical (as you suggested) or logical. For example you could have a 3-tier architecture at a high level (physical layout) and a closer look may reveile further logical tiers such as web/business/persistence tier on one server. Read into n-tiers also.



Live life to an interface, not an implementation!
I agree. Here's the link:
subject: 2 or 3 tier architecture