File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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: 528

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
jQuery in Action, 3rd edition