3 tier architecture in java



Share on Google+Share on Google+

3 tier architecture in java
1 Answer(s)      8 years ago
Posted in : JSP-Servlet
View Answers

May 21, 2012 at 11:05 AM

A three-tier architecture is any system which enforces a general separation between the following three parts:

  1. Client Tier or user interface
  2. Middle Tier or business logic
  3. Data Storage Tier

Applied to web applications and distributed programming, the three logical tiers usually correspond to the physical separation between three types of devices or hosts:

  1. Browser or GUI Application
  2. Web Server or Application Server
  3. Database Server (often an RDBMS or Relational Database)

However, inside of the application server, there is a further division of program code into three logical tiers. This is kind of fractal: the part (app server object design) resembles the whole (physical system architecture). In a classic JSP/Servlet system, these objects are usually implemented as:

  1. JSPs or Servlets responsible for creating HTML or WML user interface pages
  2. Servlets or JavaBeans responsible for business logic
  3. Servlets, JavaBeans, or Java classes responsible for data access. These objects usually use JDBC to query the database.

In an EJB system, the three logical tiers are usually implemented somewhat differently:

  1. JSPs, Servlets, or Java client applications responsible for user interface
  2. Session Beans or Entity Beans whose methods implement business logic and business rules


Related Tutorials/Questions & Answers:
3 tier architecture in java - JSP-Servlet
3 tier architecture in java  H!, My shopping cart project... here that what are the 3 tiers. I tier is html ( it can also be jsp?) II tier is what ???????? is it servlets and jsp? or weblogic server? III tier is oracle
Architecture - Java Interview Questions
Architecture  Describe three tier architecture in detail
Java Architecture
Java Architecture  What is architecture of java
Developing Distributed application using Enterprise Java Beans, J2EE Architecture, EJB Tutorial, WebLogic Tutorial.
all the problems of two-tier architecture. It also eliminates... Two-tier application: In the past two-tier applications were used. Two
Java Architecture.
Java Architecture.  Explain Java Architecture.   Please visit the following links: http://www.roseindia.net/java/quick-java.shtml http://www.roseindia.net/java/java-virtual-machine.shtml
Java Architecture
Java Architecture  What is architecture of java   Architecture of Java program Here is an architecture of a java program where documentation part or writing comments into program is completely optional.Declaration
Java Architecture Over View
Client Tier Architecture Java client tier consists of application running.... J2EE architecture is logically divided in to many tiers such as client tier...; } Overview of Client tier, Presentation tier, Business tier, and Resource tier
Java Hibernate 3 Programmer
Java Hibernate 3 Programmer        Position Vacant: Java Hibernate 3 Programmer Job...; Reference ID: Java Hibernate 3 Programmer
architecture - Java Interview Questions
architecture  Hi, can any body tell me how to explain ATG architecture in interview
mvc architecture - Java Beginners
mvc architecture  i am asking you give me an example for the object oriented programming using MVC architecture then my problem is railway tickect... to that arraylist. for this one i have to do code in MVC architecture
mvc architecture - Java Beginners
mvc architecture  can u please provide a example program with code using mvc architecture mine problem is adding routes for the railwaystation... on the MVC architecture please send me the link for knowing the implementation code
3 queries on java class
3 queries on java class  Hey. I need to do 3 queries on same class ( JAVA) One is to populate the combobox, the another one to populate tje jlist and the last one to use on button to open a file from database (BLOB) Can some
3 Java Programs for Beginners
3 Java Programs for Beginners  Write a program that prompts the user for 2 different integers, then prints out the numbers between the 2 integers (inclusive) and their squares and the sum of their squares. Write a program
Project Architecture - Java Interview Questions
Project Architecture  i want project architectre diagram and also flow plz explian in layers of the project architecture flow?i want discrpption for this one
Java Query divide frame into 3 rows and 3 columns
Java Query divide frame into 3 rows and 3 columns  how can we divide the frame into 3 rows and 3 columns
MVC architecture example - Java Beginners
MVC architecture example  hi.. I would like to ask the example...") 2.Then create a servlet page name like login.java 3.Then create another java... will be used. 4.Then create another java class where you will put your database
OOP with Java 3 - Java Beginners
OOP with Java 3  Write a Temperature class that has two instances variables: temperature value (a floating-point number) and a character for the scale, wither C for Celsius or F for Fahrenheit. the class should have four
java bits 3 - Java Interview Questions
java bits 3  Given: 11. public class Test { 12. public static void.... System.out.print(?2 ?); 20. if ((b2 = true) && b1) 21. System.out.print(?3 ?); 22. } 23. } What is the result? A. 2 B. 3 C. 1 2 D. 2 3 E. 1 2 3 F. Compilation
WAP in java to print the series 1*2*3
WAP in java to print the series 1*2*3  WAP in java to print the series 123
What is the Difference Between Presentation layer/tier and Business layer/tier?
What is the Difference Between Presentation layer/tier and Business layer/tier?  I have searched many Books, Articles, Forums to find this answer... or tier
Business Objects of Business Logic tier
will develop the objects of business logic tier. Business logic tier referrers to the mid tier of 3-tier web application architecture. Business Objects Business...Business Objects of Business Logic tier   
MVC Architecture In Java
MVC Architecture In Java In this section we will discuss about the MVC architecture. This section will describe you all the aspects of MVC architecture..., what is MVC architecture, what is model, what is view, what is controller
School Timetable System in java spring mvc 3
School Timetable System in java spring mvc 3  I want to do project in timetable generation for my project. but i dont know how generate. i'm using java spring Hibernate. please some one help me. Thanks thuva
SEE with Java
SEE with Java       Position Vacant: SEE with Java Job Description  Java... responsibilities:  Developing the architecture for the system 
Java with EJB 3
Java with EJB 3       Position Vacant: Java with EJB 3 Job Description ...://www.roseindia.net  Reference ID: Java with EJB 3
JSF architecture
JSF architecture  What is JSF architecture
Integrating Business Logic Tier and Integration Tier Components
Integrating Business Logic Tier and Integration Tier Components...; In the business logic tier web have created business objects, business services... tier components Hibernate maps the business objects to database using XML
J2EE - Java Interview Questions
J2EE  What is J2EE architecture?  Hi friend, The Java... Java applications provide a dynamic interface to the middle tier. 2. Middle... applications with an extensive test suite. J2EE architecture supports component
Architecture of application
Architecture of application  Hello, I would like to know your ideas... server will be running GlassFish 3, The GUI I already prepare will be build using Netbeans Platform module architecture. Almost everything is already clear
Java Architecture for XML Binding
Java Architecture for XML Binding             Today, XML has emerged as the standard for exchanging data across disparate systems, and Java technology
Java Programmers with Financial Application
Java Programmers with Financial Application       Position Vacant: Java Programmers with Financial... the system  Developing architecture of the application  Creating