J2EE Java 2 Enterprise Edition. Relevant Topics in The Java Tutorial Topic Web Page JDBC orial/jdbc

Slides:



Advertisements
Similar presentations
An architecture for webb applications, J2EE
Advertisements

WebSphere Diego Leone. Summary Story and birth What is WebSphere?/Goals Main features Advantages/Disadvantages Conclusions.
Technical Architectures
Distributed System Using Java 2 Enterprise Edition (J2EE) B.Ramamurthy.
Sapana Mehta (CS-6V81) Overview Of J2EE & JBoss Sapana Mehta.
MC365 Introduction to Class. Today We Will: Go over the goals of the class. Review the syllabus. Introduce ourselves. Break up into teams to exchange.
Outline IS400: Development of Business Applications on the Internet Fall 2004 Instructor: Dr. Boris Jukic Server Side Web Technologies: Part 2.
Layers & Tiers Umair Javed Lec - 41.
Java Programming, 3e Concepts and Techniques Chapter 1 An Introduction to Java and Program Design.
The Architecture of Transaction Processing Systems
Java 2 Platform, Enterprise Edition (J2EE). Source: Computer, August 2000 J2EE and Other Java 2 Platform Editions.
Enterprise Programming By J Pearce. Enterprise Software Sales HR Inventory Customer Support Shipping.
Nikolaos Korfiatis The Java 2 Enterprise Edition Platform Dept. of Management & Technology-Athens University of Economics and Business Java 2 Platform.
Application Architectures Vijayan Sugumaran Department of DIS Oakland University.
CS 483 Enterprise and Web Application Programming
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.
Introduction to J2EE Dr. N. A. Joshi.
L EC. 01: J AVA FUNDAMENTALS Fall Java Programming.
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.
Java Programming, 2E Introductory Concepts and Techniques Chapter 1 An Introduction to Java and Program Design.
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.
M. Taimoor Khan * Java Server Pages (JSP) is a server-side programming technology that enables the creation of dynamic,
Distributed Multitiered Applications The J2EE platform uses a multitiered distributed application model. Application logic is divided into components 1.
Oracle8 JDBC Drivers Section 2. Common Features of Oracle JDBC Drivers The server-side and client-side Oracle JDBC drivers provide the same basic functionality.
J2EE /.NET Liz Farricker Whitney Mayoras Patrick Bailey.
1 l Enterprise Computing -- 3-tier and multi-tier applications l Enterprise JavaBeans n EJB Features n Types of EJBs l Example – A Currency Converter n.
Notes of J2EE Tutorial Matt Tsai. 2 Outline Chapter 1: Overview Chapter 1: Overview Chapter 2: Understanding XML Chapter 2: Understanding XML Chapter.
Glink: GCOS e-business in an application server architecture Summit 2000, Jim Gallagher.
Jaeki Song ISQS6337 JAVA Lecture 16 Other Issues in Java.
Chapter 17 - Deploying Java Applications on the Web1 Chapter 17 Deploying Java Applications on the Web.
Introduction to J2EE Architecture Portions by Kunal Mehta.
|Tecnologie Web L-A Anno Accademico Laboratorio di Tecnologie Web Introduzione ad Eclipse e Tomcat
第十四章 J2EE 入门 Introduction What is J2EE ?
J2EE Structure & Definitions Catie Welsh CSE 432
® IBM Software Group © 2007 IBM Corporation J2EE Web Component Introduction
Enterprise Java Beans Java for the Enterprise Server-based platform for Enterprise Applications Designed for “medium-to-large scale business, enterprise-wide.
Java 2 Enterprise Edition Presented by: Reem Osama Shehata Supervised by: Dr. Sherif Aly 16 th March 2006.
MACIASZEK, L.A. (2001): Requirements Analysis and System Design. Developing Information Systems with UML, Addison Wesley Chapter 6 - Tutorial Guided Tutorial.
Source: Peter Eeles, Kelli Houston, and Wojtek Kozaczynsky, Building J2EE Applicationa with the Rational Unified Process, Addison Wesley, 2003 Prepared.
Ch 2 – Application Assembly and Deployment COSC 617 Jeff Schmitt September 14, 2006.
1 Java EE Programming Enterprise JavaBeans. 2 Topics J2EE Overview Enterprise JavaBeans Overview Enterprise Entity Beans Case Study How to build them.
Copyright © 2002 ProsoftTraining. All rights reserved. JavaServer Pages.
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.
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.
Java Programming: Advanced Topics1 Introduction to Advanced Java Programming Chapter 1.
Creating competitive advantage Copyright © 2003 Enterprise Java Beans Presenter: Wickramanayake HMKSK Version:0.1 Last Updated:
©NIIT Introducing Enterprise JavaBeans (EJB) Lesson 1A / Slide 1 of 43J2EE Server Components Objectives In this lesson, you will learn about: The features.
Chapter 12: Design Elements Object-Oriented Systems Analysis and Design Joey F. George, Dinesh Batra, Joseph S. Valacich, Jeffrey A. Hoffer.
Java Programming: Advanced Topics 1 Building Web Applications Chapter 13.
Glink for Java: applet, application and an API for integrating access to Bull, IBM, UNIX and Minitel systems with your Java based e-business applications.
Intro to J2EE Concepts Mimi Opkins Fall 2016 CECS493.
J2EE Platform Overview (Application Architecture)
WebSphere Diego Leone.
Introduction to Advanced Java Programming
Introduction to J2EE Architecture
Design and Maintenance of Web Applications in J2EE
Distributed System Using Java 2 Enterprise Edition (J2EE)
JavaServer Faces: The Fundamentals
Intro to J2EE Concepts.
Presentation transcript:

J2EE Java 2 Enterprise Edition

Relevant Topics in The Java Tutorial Topic Web Page JDBC orial/jdbc orial/jdbc Threads orial/essential/threads orial/essential/threads

Relevant Topics in The Java Tutorial JavaBeans s/tutorial/javabeans s/tutorial/javabeans Security s/tutorial/security1.2 s/tutorial/security1.2

Required Software You need to download The J2EE 1.4 Tutorial from: tml#tutorial

To build, deploy, and run the examples you need a copy of the: J2EE 1.4 Application Server Beta 2 and the Java 2 Platform, Standard Edition (J2SE ) SDK

You download this version of the J2EE 1.4 Application Server from: dk dk The J2SE SDK from:

Overview Today, more and more developers want to write distributed transactional applications for the enterprise and leverage the speed, security, and reliability of server-side technology.

Overview If you are already working in this area, you know that in today's fast-moving and demanding world of e-commerce

Overview and information technology, enterprise applications have to be designed, built, and produced for less money, with greater speed, and with fewer resources than ever before.

Overview To reduce costs and fast-track application design and development, Java 2 Platform, Enterprise Edition (J2EE ) provides a component-based approach to the design, development, assembly, and deployment of enterprise applications.

Overview The J2EE platform offers a multitiered distributed application model, reusable components, a unified security model, flexible transaction control,...

Overview... and Web services support through integrated data interchange on Extensible Markup Language (XML)- based open standards and protocols.

Overview Not only can you deliver innovative business solutions to market faster than ever, but your platform-independent J2EE component-based solutions are not tied to the products and application programming interfaces (APIs) of any one vendor.

Overview Vendors and customers enjoy the freedom to choose the products and components that best meet their business and technological requirements.

Overview This tutorial takes an examples-based approach to describing the features and functionalities available in J2EE version 1.4 for developing enterprise applications.

Overview Whether you are a new or an experienced developer, you should find the examples and accompanying text a valuable and accessible knowledge base for creating your own solutions.

Overview If you are new to J2EE enterprise application development, this chapter is a good place to start. Here you will learn development basics, be introduced to the J2EE architecture and the APIs, Becoming acquainted with important terms and concepts, and find out how to approach J2EE application programming, assembly, and deployment.

Overview Becoming acquainted with important terms and concepts, and find out how to approach J2EE application programming, assembly, and deployment.

2. Distributed Multitiered Applications The J2EE platform uses a multitiered distributed application model for both enterprise applications.

Distributed Multitiered Applications Application logic is divided into components according to function, and the various application components that make up a J2EE application are installed on different machines depending on the tier in the multitiered J2EE environment to which the application component belongs.

Distributed Multitiered Applications Figure 1-1Figure 1-1 shows two multitiered J2EE applications divided into the tiers described in the following list. The J2EE application parts shown in Figure 1-1 are presented in J2EE Components.Figure 1-1J2EE Components

Multitiered Applications Figure 1-1

Distributed Multitiered Applications Client-tier components run on the client machine. Web-tier components run on the J2EE server. Business-tier components run on the J2EE server. Enterprise information system (EIS)- tier software runs on the EIS server

Three-tiered applications Although a J2EE application can consist of the three or four tiers shown in Figure 1-1, J2EE multitiered applications are generally considered to be three-tiered applications...Figure 1-1

Three-tiered applications... because they are distributed over three different locations: client machines, the J2EE server machine, and the database or legacy machines at the back end.

Three-tiered applications Three-tiered applications that run in this way extend the standard two-tiered client and server model by placing a multithreaded application server between the client application and back- end storage.

3. J2EE Components J2EE applications are made up of components. A J2EE component is a self-contained functional software unit that is assembled into a J2EE application with its related classes and files and that communicates with other components.

J2EE Components The J2EE specification defines the following J2EE components: Application clients and applets are components that run on the client. Java Servlet and JavaServer Pages (JSP ) technology components are Web components that run on the server. Enterprise JavaBeans (EJB ) components (enterprise beans) are business components that run on the server.

J2EE Components J2EE components are written in the Java programming language and are compiled in the same way as any program in the language.

J2EE Components The difference between J2EE components and "standard" Java classes is that J2EE components are assembled into a J2EE application, verified to be well formed and in compliance with the J2EE specification, and deployed to production, where they are run and managed by the J2EE server.

J2EE Components... verified to be well formed and in compliance with the J2EE specification, and deployed to production, where they are run and managed by the J2EE server.

J2EE Clients A J2EE client can be a Web client or an application client.

Web Clients A Web client consists of two parts: dynamic Web pages containing various types of markup language (HTML, XML, and so on), which are generated by Web components running in the Web tier, and a Web browser, which renders the pages received from the server.

Web Clients A Web client is sometimes called a thin client. Thin clients usually do not do things like query databases, execute complex business rules, or connect to legacy applications.

When you use a thin client, heavyweight operations like these are off-loaded to enterprise beans executing on the J2EE server where they can leverage the security, speed, services, and reliability of J2EE server-side technologies.

Application Clients A J2EE application client runs on a client machine and provides a way for users to handle tasks that require a richer user interface than can be provided by a markup language.

Application Clients It typically has a graphical user interface (GUI) created from Swing or Abstract Window Toolkit (AWT) APIs, but a command-line interface is certainly possible.

Application Clients Application clients directly access enterprise beans running in the business tier. However, if application requirements warrant it, a J2EE application client can open an HTTP connection to establish communication with a servlet running in the Web tier.

Application Clients However, if application requirements warrant it, a J2EE application client can open an HTTP connection to establish communication with a servlet running in the Web tier.

JavaBeans Component Architecture The server and client tiers might also include components based on the JavaBeans component architecture (JavaBeans component) to manage the data flow between an application client

JavaBeans Component Architecture... or applet and components running on the J2EE server or between server components and a database. JavaBeans components are not considered J2EE components by the J2EE specification.

Server Communications

Web Tier and J2EE Applications

Business and EIS Tiers

Container Types The deployment process installs J2EE application components in the J2EE containers illustrated in Figure 1-5.Figure 1-5

J2EE Server and Containers

Container Types J2EE server The runtime portion of a J2EE product. A J2EE server provides EJB and Web containers.

Container Types Enterprise JavaBeans (EJB) container Manages the execution of enterprise beans for J2EE applications. Enterprise beans and their container run on the J2EE server.

Container Types Web container Manages the execution of JSP page and servlet components for J2EE applications. Web components and their container run on the J2EE server.

Container Types Application client container Manages the execution of application client components. Application clients and their container run on the client.

Container Types Applet container Manages the execution of applets. Consists of a Web browser and Java Plug-in running on the client together.

Packaging A J2EE application is delivered in an Enterprise Archive (EAR) file. An EAR file is a standard Java Archive (JAR) file with an.ear extension. The EAR file contains J2EE modules.

EAR Files Using EAR files and modules makes it possible to assemble a number of different J2EE applications using some of the same components. No extra coding is needed; it is just a matter of assembling various J2EE modules into J2EE EAR files.

J2EE Module A J2EE module consists of one or more J2EE components for the same container type and one component deployment descriptor of that type.

Deployment Descriptor A deployment descriptor is an XML document with an.xml extension that describes a component's deployment settings.

An enterprise bean module deployment descriptor, for example, declares transaction attributes and security authorizations for an enterprise bean.

Because deployment descriptor information is declarative, it can be changed without modifying the bean source code. At run time, the J2EE server reads the deployment descriptor and acts upon the component accordingly.

J2EE module A J2EE module without an application deployment descriptor can be deployed as a stand-alone module.

Types of J2EE modules The four types of J2EE modules are: Enterprise JavaBeans modules contain class files for enterprise beans and an EJB deployment descriptor. EJB modules are packaged as JAR files with a.jar extension.

Types of J2EE modules Web modules contain JSP files, class files for servlets, GIF and HTML files, and a Web deployment descriptor. Web modules are packaged as JAR files with a.war (Web ARchive) extension.

Types of J2EE modules Resource adapter modules contain all Java interfaces, classes, native libraries, and other documentation, along with the resource adapter deployment descriptor.

Types of J2EE modules Together, these implement the Connector architecture (see J2EE Connector Architecture) for a particular EIS.J2EE Connector Architecture Resource adapter modules are packages as JAR files with a.rar (Resource adapter ARchive) extension.

Types of J2EE modules Application client modules contain class files and an application client deployment descriptor. Application client modules are packaged as JAR files with a.jar extension.