This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread 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 Android Security Essentials Live Lessons this week in the Android 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!
jQuery in Action, 2nd edition
subject: 2 or 3 tier architecture
Similar Threads
3-tier architecture -- poor Manageability?
Tiers and layers - integration
Whizlabs scalability question
Multi-tier architecture
Servlets communication on different host