Layers & Tiers Umair Javed Lec - 41.

Slides:



Advertisements
Similar presentations
Apache Struts Technology
Advertisements

Objectives In this session, you will learn to:
 Java  Python  Bigtable(Bt) is a distributed storage system for managing structured data that is designed to scale to a very large size.  Query Language.
Web applications using JavaServer Faces (JSF) A brief introduction 1JavaServer Faces (JSF)
Distributed System Using Java 2 Enterprise Edition (J2EE) B.Ramamurthy.
Sapana Mehta (CS-6V81) Overview Of J2EE & JBoss Sapana Mehta.
J2EE Java2 Enterprise Edition by Damian Borth. Contents Introduction Architectures styles Components Scenarios Roles Processing a HTTP request.
J2EE Java 2 Enterprise Edition. Relevant Topics in The Java Tutorial Topic Web Page JDBC orial/jdbc
Introduction to Servlet & JSP
E-business Architecture.NET vs J2EE Judith Molka-Danielsen Feb.27, 2004.
Application Architectures Vijayan Sugumaran Department of DIS Oakland University.
Technion – Israel Institute of Technology Department of Electrical Engineering Software Lab Grades Server on J2EE Technology Edo Yichie Sagee Rosen Supervisor:
12-1 © Prentice Hall, 2004 Chapter 12: Design Elements Object-Oriented Systems Analysis and Design Joey F. George, Dinesh Batra, Joseph S. Valacich, Jeffrey.
CS6320 – J2EE L. Grewe MOTIVATION: E-commerce and Enterprise Computing Models Four models for e-commerce and enterprise computing: Four models for e-commerce.
Emmanuel Cecchet et al.  Performance Scalability of J2EE application servers.  Test effect of: ◦ Application Implementation Methods ◦ Container Design.
Java Pet Store Application. Outline Introduction Introduction Information Layer Information Layer Application Layer Application Layer Infrastructure Layer.
Distributed System Using Java 2 Enterprise Edition (J2EE)
INTRODUCING THE JAVA EE PLATFORM Ch-5. Introduction Java is a  platform-independent programming language  secure and robust applications  may run on.
Struts. Agenda Preface Struts and its components An example The architecture required for Struts Applications.
UNIT-V The MVC architecture and Struts Framework.
JavaServer Faces: The Fundamentals Compiled from Sun TechDays workshops (JSF Basics, Web-Tier Codecamp: JavaServer Faces, Java Studio Creator; IBM RAD)
Chapter 10 EJB Concepts of EJB Three Components in Creating an EJB Starting/Stopping J2EE Server and Deployment Tool Installation and Configuration of.
Copyright © 2012 Accenture All Rights Reserved.Copyright © 2012 Accenture All Rights Reserved. Accenture, its logo, and High Performance Delivered are.
EJB Overview Celsina Bignoli Distributed Business Applications Server DB Client DB Server DB.
Distributed Multitiered Applications The J2EE platform uses a multitiered distributed application model. Application logic is divided into components 1.
CIS 285 ROBINSON WINTER 2005 CIS 285 Web Application Development with Java CIS 285 Sinclair Community College Instructor: Mary Robinson.
Chapter 16 The World Wide Web Chapter Goals Compare and contrast the Internet and the World Wide Web Describe general Web processing Describe several.
Bayu Priyambadha, S.Kom. What is J2EE? * Open and standard based platform for developing, deploying and managing n-tier, Web-enabled, server-centric,
Networked Application Architecture Design. Application Building Blocks Application Software Data Infrastructure Software Local Area Network Server Desktop.
Introduction to distributed systems Dr. S. Indran 23 January 2004.
Chapter 17 - Deploying Java Applications on the Web1 Chapter 17 Deploying Java Applications on the Web.
Introduction to J2EE Architecture Portions by Kunal Mehta.
JBoss at Work JAW Motors Application Chapter 1-3 Jeff Schmitt October 9, 2006.
第十四章 J2EE 入门 Introduction What is J2EE ?
J2EE Structure & Definitions Catie Welsh CSE 432
® IBM Software Group © 2007 IBM Corporation J2EE Web Component Introduction
Slide 1 Physical Architecture Layer Design Chapter 13.
Case Study + MVC Lec Error Pages By means of the page directive, a JSP can be given the responsibility of an Error page An Error JSP will be called.
Source: Peter Eeles, Kelli Houston, and Wojtek Kozaczynsky, Building J2EE Applicationa with the Rational Unified Process, Addison Wesley, 2003 Prepared.
JSTL Lec Umair©2006, All rights reserved JSTL (ni) Acronym of  JavaServer Pages Standard Tag Library JSTL (like JSP) is a specification, not an.
The Client/Server Database Environment Ployphan Sornsuwit KPRU Ref.
1 Java EE Programming Enterprise JavaBeans. 2 Topics J2EE Overview Enterprise JavaBeans Overview Enterprise Entity Beans Case Study How to build them.
Enterprise Java Beans. Model 1 J2EE – Web View Model/View/Controller Model View Control Data base Web Server Model One Architecture HTTP Request HTTP.
Assignment of JAVA id : BSSE-F10-M-10-JAVA1 Overview of J2EE/Session 2/Slide 1 of 38.
© FPT SOFTWARE – TRAINING MATERIAL – Internal use 04e-BM/NS/HDCV/FSOFT v2/3 JSP Application Models.
What is J2EE Platform The Java 2 Platform Enterprise Edition (J2EE) defines the standard for developing multitier enterprise applications.
Preface IIntroduction Objectives I-2 Course Overview I-3 1Oracle Application Development Framework Objectives 1-2 J2EE Platform 1-3 Benefits of the J2EE.
1 Copyright © 2004, Oracle. All rights reserved. Oracle Application Development Framework.
Introduction to EJB. What is an EJB ?  An enterprise java bean is a server-side component that encapsulates the business logic of an application. By.
1 Distributed System using J2EE. 2 What is J2EE?  J2EE (Java2 Enterprise Edition) offers a suite of software specification to design, develop, assemble.
Modern Programming Language. Web Container & Web Applications Web applications are server side applications The most essential requirement.
Introduction to EJB. What is an EJB ?  An enterprise java bean is a server-side component that encapsulates the business logic of an application. By.
Creating competitive advantage Copyright © 2003 Enterprise Java Beans Presenter: Wickramanayake HMKSK Version:0.1 Last Updated:
Java Programming: Advanced Topics 1 Building Web Applications Chapter 13.
SDJ INFOSOFT PVT. LTD. 2 BROWSERBROWSER JSP JavaBean DB Req Res Application Layer Enterprise server/Data Sources.
Apache Struts Technology A MVC Framework for Java Web Applications.
Building J2EE Applications Based on Design Patterns with Business Components for Java Olivier LE DIOURIS Principal Product Manager Oracle Corporation.
E-commerce Architecture Ayşe Başar Bener. Client Server Architecture E-commerce is based on client/ server architecture –Client processes requesting service.
A Presentation Presentation On JSP On JSP & Online Shopping Cart Online Shopping Cart.
J2EE Platform Overview (Application Architecture)
Structure of a web application
Introduction to J2EE Architecture
Unit 6-Chapter 2 Struts.
Design and Maintenance of Web Applications in J2EE
Distributed System Using Java 2 Enterprise Edition (J2EE)
Computer Based Adaptive Testing
JavaServer Faces: The Fundamentals
Web Application Server 2001/3/27 Kang, Seungwoo. Web Application Server A class of middleware Speeding application development Strategic platform for.
Component-based Applications
Presentation transcript:

Layers & Tiers Umair Javed Lec - 41

Layers & Tiers Layers are merely logical groupings of the software components that make up the application or service. Whereas tiers refer to the physical residence of those layers (hardware) In general, Layers – represents logical view of application Tiers – represents physical view of application However, both terms are used interchangeably.

Layers Figure shows a simplified view of one application and its layers.

Tiers Presentation Layer Web Layer Business Layer EIS Layer browser Client machine Web server Web Layer Server machine Application server Business Layer DB server EIS Layer DB machine

Layers [1] Presentation layer Collects user inputs Validates user inputs Presents the results of a computation Controls the screen flow

Layers [2] Business Layer Concerned with the application specific functionality Used to implement business rules and to perform business tasks For example, in a banking system, banking functions such as opening an account, calculation of Tax, etc.

Layers [3] Data Layer Concerned with the management of the data & data sources of the system. Data sources can be database, XML , web services, flat file etc. Encapsulates data retrieval & storage logic For example, the address book application needs to retrieve all person records from a database to display them to the user

Frameworks(Struts,JSF etc) Layers Support in Java Layers Java/J2EE Technology Client Presentation HTML/Applets JSP / Servlets Frameworks(Struts,JSF etc) Server Presentation Business JavaBeans / EJB Data DAO / Connectors

Java 2 Enterprise Edition (J2EE)

What is J2EE? Open and standard based platform for: Development & deployment of n-tier web based and component based enterprise applications Reusability, enhance-ability, scalability & interoperability

J2EE Suite Core technology: Web Technology Platform services Container infrastructure, language and environment support Web Technology Java Servlets JavaServer Pages (JSP) JavaServer Pages Standard Tag Library (JSTL) JavaServer Faces (JSF) Platform services Security Transactions Resources Connectors Java Message Service And extensive support for XML technology Enterprise Java Bean (EJB) technology etc.

J2EE Distributed Multi-tiered Applications

J2EE : Multi-tiered Applications

J2EE : Multi-tiered Applications

J2EE : Multi-tiered Applications servlets

Client Tier Communication Options

Communication with Business Tier

Case Study: Matrix Multiplication Using Layers

Case Study: Matrix Multiplication Problem Statement Calculate product of two matrices of order 2 * 2 Result of multiplication should be stored in DB as well as shown to the user.

Case Study: Matrix Multiplication Format Input format input will be in 4,2,6,5 format separated by commas where 4,2 represents entries of the first row Display format Displays the matrix as a square Storage format Matrix will be stored as a string

Matrix Multiplication: Layer by Layer View Client side Presentation layer HTML Matrixresult .jsp Matrixinput .jsp Server side Presentation layer MatrixBeann ControllerServlet Controller layer MatrixMultiplier Business layer Data layer MatrixDAO

Case Study: Matrix Multiplication Example Code netBeans4.1 Project