java 2 platform, enterprise edition (j2ee)

30
Java 2 Platform, Enterprise Edition (J2EE)

Upload: nuncio

Post on 05-Jan-2016

80 views

Category:

Documents


0 download

DESCRIPTION

Java 2 Platform, Enterprise Edition (J2EE). J2EE and Other Java 2 Platform Editions. Source: Computer , August 2000. J2EE and Other Java 2 Platform Editions. Source: Sun Microsystems, Inc. Java Development and Runtime Environment. - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: Java 2 Platform, Enterprise Edition (J2EE)

Java 2 Platform, Enterprise Edition(J2EE)

Page 2: Java 2 Platform, Enterprise Edition (J2EE)

Source: Computer, August 2000

J2EE and Other Java 2 Platform Editions

Page 3: Java 2 Platform, Enterprise Edition (J2EE)

Source: Sun Microsystems, Inc.

J2EE and Other Java 2 Platform Editions

Page 4: Java 2 Platform, Enterprise Edition (J2EE)

Source: P.J. Perrone and V.S.R.R. Chaganti, Building Java Enterprise Systems with J2EE

Java Development and Runtime Environment

Page 5: Java 2 Platform, Enterprise Edition (J2EE)

Source: P.J. Perrone and V.S.R.R. Chaganti, Building Java Enterprise Systems with J2EE

Java 2 Platform Runtime Architecture

Page 6: Java 2 Platform, Enterprise Edition (J2EE)

Source: Sun Microsystems, Inc., http://java.sun.com/j2se/1.3/

Java 2 Platform, Standard Edition (J2SE)

Page 7: Java 2 Platform, Enterprise Edition (J2EE)

J2EE Components

• Application Components: Application Clients, Applets, Servelets, JavaServer Pages,

Enterprise Beans

• Containers (including J2SE runtime)• Resource Manager Drivers• Database• Standard Services: HTTP/HTTPS, JTA, JDBC, JMS, JAAS, ...

Page 8: Java 2 Platform, Enterprise Edition (J2EE)

Source: Sun Microsystems, Inc., J2EE Specification v1.3

J2EE Architecture

Page 9: Java 2 Platform, Enterprise Edition (J2EE)

J2EE Standard Services

• HTTP/HTTPS

• Java Transaction API (JTA)

• JDBC

• Java Message Service (JMS)

• Java Authentication and Authorization Service (JAAS)

• J2EE Connector Architecture

• Others: RMI-IIOP, JavaIDL, JavaMail, JavaBeans Activation Framework (JAF), Java API for XML Parsing (JAXP)

Page 10: Java 2 Platform, Enterprise Edition (J2EE)

Source: Sun Microsystems, Inc., J2EE Specification v1.3

J2EE Interoperability

Page 11: Java 2 Platform, Enterprise Edition (J2EE)

J2EE Platform Roles

• J2EE Product Provider

• Application Component Provider

• Application Assembler

• Deployer

• System Administrator

• Tool Provider

Page 12: Java 2 Platform, Enterprise Edition (J2EE)

Source: Sun Microsystems, Inc., JDBC 3.0 Specification

2-Tier Database Access

Page 13: Java 2 Platform, Enterprise Edition (J2EE)

Source: Sun Microsystems, Inc., JDBC 3.0 Specification

3-Tier Database Access

Page 14: Java 2 Platform, Enterprise Edition (J2EE)

The Connector Architecture

• Integration of J2EE servers with Enterprise Information Systems (EIS)

• EIS vendor-provided resource adaptors

• Resource adaptor-permitting application servers

Page 15: Java 2 Platform, Enterprise Edition (J2EE)

Source: Sun Microsystems, Inc., J2EE Connector Architecture Specification

System Level Pluggability

Page 16: Java 2 Platform, Enterprise Edition (J2EE)

Source: Sun Microsystems, Inc., J2EE Connector Architecture Specification

Connector Architecture Overview

Page 17: Java 2 Platform, Enterprise Edition (J2EE)

Source: Sun Microsystems, Inc., J2EE Connector Architecture Specification

Connector Architecture Overview

Page 18: Java 2 Platform, Enterprise Edition (J2EE)

Source: Sun Microsystems, Inc., J2EE Connector Architecture Specification

Connector Architecture in B2B Scenario

Page 19: Java 2 Platform, Enterprise Edition (J2EE)

Enterprise JavaBeans (EJB)

• EJB is an architecture for component-based transactional distributed computing.

• An enterprise bean contains business logic that operates on the enterprise’s data.

• Client access is mediated by a Container.• There are three kinds of enterprise beans:

session beans, entity beans, and message-driven beans.

Page 20: Java 2 Platform, Enterprise Edition (J2EE)

Enterprise Bean Objects

• Session objects: for a single client, short-lived, …

• Entity objects: object view of data in the database, shared by multiple clients, long-lived, …

• Message-driven objects: triggered by a single client message, short-lived, stateless, …

Page 21: Java 2 Platform, Enterprise Edition (J2EE)

Client View of an Enterprise Bean

• Home Interface: methods for creating, removing, and finding bean instances

• Remote Interface: methods callable by the client

• Object Identity• Metadata Interface: mainly for dynamic

invocation• Handle

Page 22: Java 2 Platform, Enterprise Edition (J2EE)

Source: Sun Microsystems, Inc., Enterprise JavaBeans 2.0

Client View of Session Beans

Page 23: Java 2 Platform, Enterprise Edition (J2EE)

Source: Sun Microsystems, Inc., J2EE Specification, v1.3

Accessing Enterprise Beans from Servlets/JavaServer Pages

Page 24: Java 2 Platform, Enterprise Edition (J2EE)

Source: Sun Microsystems, Inc., J2EE Specification, v1.3

J2EE Deployment

Page 25: Java 2 Platform, Enterprise Edition (J2EE)

Source: Sun Microsystems, Inc., J2EE Connector Architecture Specification

J2EE Application Life Cycle

Page 26: Java 2 Platform, Enterprise Edition (J2EE)

Source: P.J. Perrone and V.S.R.R. Chaganti, Building Java Enterprise Systems with J2EE

Overview of Enterprise Applications Integration (EAI)

Page 27: Java 2 Platform, Enterprise Edition (J2EE)

Source: P.J. Perrone and V.S.R.R. Chaganti, Building Java Enterprise Systems with J2EE

Overview of Enterprise Applications Integration (EAI)

Page 28: Java 2 Platform, Enterprise Edition (J2EE)

Source: P.J. Perrone and V.S.R.R. Chaganti, Building Java Enterprise Systems with J2EE

EAI with XML

Page 29: Java 2 Platform, Enterprise Edition (J2EE)

Source: Sun Microsystems, Inc., The J2EE Tutorial

An Example Mid-tier Design

Page 30: Java 2 Platform, Enterprise Edition (J2EE)

Source: Sun Microsystems, Inc., The J2EE Tutorial

Enterprise Beans of the Example Design