3 Copyright © 2005, Oracle. All rights reserved. Designing J2EE Applications.

Slides:



Advertisements
Similar presentations
J0 1 Marco Ronchetti - Basi di Dati Web e Distribuite – Laurea Specialistica in Informatica – Università di Trento.
Advertisements

J0 1 Marco Ronchetti - Basi di Dati Web e Distribuite – Laurea Specialistica in Informatica – Università di Trento.
19 Copyright © 2005, Oracle. All rights reserved. Distributing Modular Applications: Developing Web Services.
1 Copyright © 2005, Oracle. All rights reserved. Introduction.
7 Copyright © 2005, Oracle. All rights reserved. Maintaining State in J2EE Applications.
18 Copyright © 2005, Oracle. All rights reserved. Distributing Modular Applications: Introduction to Web Services.
5 Copyright © 2005, Oracle. All rights reserved. Accessing the Database with Servlets.
4 Copyright © 2005, Oracle. All rights reserved. Creating the Web Tier: Servlets.
11 Copyright © 2005, Oracle. All rights reserved. Creating the Business Tier: Enterprise JavaBeans.
1 Copyright © 2005, Oracle. All rights reserved. Introducing the Java and Oracle Platforms.
8 Copyright © 2005, Oracle. All rights reserved. Creating the Web Tier: JavaServer Pages.
J2EE Overview.
6 Copyright © 2005, Oracle. All rights reserved. Building Applications with Oracle JDeveloper 10g.
17 Copyright © 2005, Oracle. All rights reserved. Deploying Applications by Using Java Web Start.
Enterprise Java and Data Services Designing for Broadly Available Grid Data Access Services.
ICS 434 Advanced Database Systems
Apache Struts Technology
Copyright © 2008 Accenture All Rights Reserved. Accenture, its logo, and High Performance Delivered are trademarks of Accenture. Andrew Stone Common Security.
Model-View-Controller ("MVC") This is a architectural design pattern for interactive applications. This design pattern organizes an interactive application.
Sapana Mehta (CS-6V81) Overview Of J2EE & JBoss Sapana Mehta.
Enterprise Applications & Java/J2EE Technologies Dr. Douglas C. Schmidt Professor of EECS.
Chapter 13 Physical Architecture Layer Design
© 2005, Cornell University. Rapid Application Development using the Kuali Architecture (Struts, Spring and OJB) A Case Study Bryan Hutchinson
Component Based Systems Analysis Introduction. Why Components? t Development alternatives: –In-house software –Standard packages –Components 60% of the.
Application Architectures Vijayan Sugumaran Department of DIS Oakland University.
UNIT-V The MVC architecture and Struts Framework.
JDBC Session 5 Tonight: Data Access Patterns 1.J2EE Architecture & Design Patterns 2.The Data Access Tier 3.Data Access Patterns –DataAccessObject (DAO)
EJB Overview Celsina Bignoli Distributed Business Applications Server DB Client DB Server DB.
Model View Controller (MVC) Rick Mercer with a wide variety of others 1.
1 Copyright © 2004, Oracle. All rights reserved. Introduction to Oracle Forms Developer and Oracle Forms Services.
Copyright © 2012 Accenture All Rights Reserved.Copyright © 2012 Accenture All Rights Reserved. Accenture, its logo, and High Performance Delivered are.
Enterprise Java Beans Part I Kyungmin Cho 2001/04/10.
Design Patterns Phil Smith 28 th November Design Patterns There are many ways to produce content via Servlets and JSPs Understanding the good, the.
Enterprise JavaBeans. What is EJB? l An EJB is a specialized, non-visual JavaBean that runs on a server. l EJB technology supports application development.
Java Petstore : A Case Study Rohit Nambiar July 2005.
JSP Architecture Outline  Model 1 Architecture  Model 2 Architecture.
J2EE Structure & Definitions Catie Welsh CSE 432
® IBM Software Group © 2007 IBM Corporation J2EE Web Component Introduction
JSF Introduction Copyright © Liferay, Inc. All Rights Reserved. No material may be reproduced electronically or in print without written permission.
Source: Peter Eeles, Kelli Houston, and Wojtek Kozaczynsky, Building J2EE Applicationa with the Rational Unified Process, Addison Wesley, 2003 Prepared.
Architectural Patterns Support Lecture. Software Architecture l Architecture is OVERLOADED System architecture Application architecture l Architecture.
Copyright © 2002 ProsoftTraining. All rights reserved. JavaServer Pages.
Model View Controller Architecture of Java Web Applications Dr. M V S Peri Sastry, Ph.D.[BITS-Pilani]
Enterprise Java Beans. Model 1 J2EE – Web View Model/View/Controller Model View Control Data base Web Server Model One Architecture HTTP Request HTTP.
Introduction to Enterprise JavaBeans Topics In Systems Architecture Barry Herbold
Model View Controller (MVC) Bigger than a Pattern: It’s an Architecture Rick Mercer with help from many of others 1.
CS562 Advanced Java and Internet Application Introduction to the Computer Warehouse Web Application. Java Server Pages (JSP) Technology. By Team Alpha.
© FPT SOFTWARE – TRAINING MATERIAL – Internal use 04e-BM/NS/HDCV/FSOFT v2/3 JSP Application Models.
Preface IIntroduction Objectives I-2 Course Overview I-3 1Oracle Application Development Framework Objectives 1-2 J2EE Platform 1-3 Benefits of the J2EE.
MVC WITH CODEIGNITER Presented By Bhanu Priya.
1 Copyright © 2004, Oracle. All rights reserved. Oracle Application Development Framework.
Chapter 3 JSP Overview. The Problem with Servlets processing the request and generating the response are both handled by a single servlet class Java programming.
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.
Model View Controller (MVC) an architecture Rick Mercer with help from many of others 1.
10 Copyright © 2004, Oracle. All rights reserved. Building ADF View Components.
2 Copyright © 2004, Oracle. All rights reserved. ADF Development Process.
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.
2 Copyright © Oracle Corporation, All rights reserved. Basic Oracle Net Architecture.
CS 562 Advanced Java and Internet Application Computer Warehouse Web Application By Team Alpha :-  Puja Mehta (102163)  Mona Nagpure (102147)
Java Web Development with NetBeans IDE -- Kai Qian Chapter 9 Case Study.
J2EE Platform Overview (Application Architecture)
Introduction to Oracle Forms Developer and Oracle Forms Services
Introduction to Oracle Forms Developer and Oracle Forms Services
Introduction to Oracle Forms Developer and Oracle Forms Services
Unit 6-Chapter 2 Struts.
Enterprise Application Architecture
Enterprise Java Bean. Overview of EJB View of EJB Conversation Roles in EJB, Types of Enterprise Beans Lifecycle of Beans Developing Applications using.
Design and Maintenance of Web Applications in J2EE
Component-based Applications
Presentation transcript:

3 Copyright © 2005, Oracle. All rights reserved. Designing J2EE Applications

3-2 Copyright © 2005, Oracle. All rights reserved. Objectives After completing this lesson, you should be able to do the following: Describe the various Java 2, Enterprise Edition (J2EE) patterns Use the Model View Controller (MVC) architecture to design more efficient and maintainable applications Identify sample architectures and their merits and demerits

3-3 Copyright © 2005, Oracle. All rights reserved. Realizing J2EE Benefits To leverage the full benefits of J2EE, you must design applications that are: Portable: You should be able to redeploy the J2EE applications to different servers, databases, and so on. Scalable: Web applications should be able to handle large numbers of users. Maintainable: A minimum amount of coding should be necessary for a new business rule. Reusable: A class that processes credit cards should be reused by multiple applications. Simple: The business need should be solved with the least amount of complexity.

3-4 Copyright © 2005, Oracle. All rights reserved. J2EE Issues It is important to follow certain guidelines for the design and development of any new technology: Implement generally accepted design patterns and architectures. Focus on real business needs rather than simply adopting new technology. Employ the simplest technology to solve a business problem.

3-5 Copyright © 2005, Oracle. All rights reserved. J2EE Design Patterns Recurring application development issues have led to the acceptance of design patterns. The generally accepted design patterns include (but are not limited to) the following: Presentation-tier patterns –Intercepting filter –Controller servlet Business-tier patterns –Business delegate –Transfer object

3-6 Copyright © 2005, Oracle. All rights reserved. Implementing Design Patterns by Using MVC MVC is a framework that separately identifies the components of an application as: Business functionality (Model) Presentation (View) Control logic (Controller) View Controller Model

3-7 Copyright © 2005, Oracle. All rights reserved. The Model The model represents the enterprise data and business rules, handling access and updates. You can simplify the model by using two mechanisms called façade class and command pattern. –A façade encapsulates and hides the complexity, and coordinates the operations between cooperating classes. –A command pattern encapsulates each application function in a separate class. The model is often implemented as EJBs.

3-8 Copyright © 2005, Oracle. All rights reserved. The View The view focuses on presentation and is responsible for maintaining consistency between data presentation and model changes. It enables: –Presentation to be changed without altering programming logic –Development by Web page authors having only visual design skills The view is commonly implemented as JSPs.

3-9 Copyright © 2005, Oracle. All rights reserved. The Controller The controller provides interaction with the client, serving as a glue between the model and the view. The controller: –Interprets user requests, and controls business objects to fulfill these requests –Removes navigation coding from the view –Can be implemented in the client, Web, or EJB tier or in a combination of these tiers The controller is usually implemented as a servlet.

3-10 Copyright © 2005, Oracle. All rights reserved. MVC in Oracle Application Server 10g Containers for J2EE Browser Servlet Enterprise JavaBeans HTTP response Method invocation Return result Selected view ModelViewController JSP HTTP request

3-11 Copyright © 2005, Oracle. All rights reserved. Designing J2EE Applications Use the following techniques when designing J2EE applications: Use case analysis: Identify the operations that each component will perform. Decide how to distribute application functionality across tiers: –A JSP or servlet can access the database by using JDBC, without interfacing with the EJB tier. –Creating EJBs relieves the developer from the task of managing transactions.

3-12 Copyright © 2005, Oracle. All rights reserved. Flow Diagram: Example Browse products Receive order status Administrator Vendor Log in Customer Update inventories Fill orders Place orders

3-13 Copyright © 2005, Oracle. All rights reserved. Summary In this lesson, you should have learned how to: Consider generally accepted patterns when designing J2EE applications Identify the model, the view, and the controller components for a J2EE application

3-14 Copyright © 2005, Oracle. All rights reserved. Practice 3-1: Overview This practice covers using J2EE design patterns and the MVC architecture to identify components for a proposed application.

3-15 Copyright © 2005, Oracle. All rights reserved.

3-16 Copyright © 2005, Oracle. All rights reserved.