java 2 platform, enterprise edition (j2ee)
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 PresentationTRANSCRIPT
Java 2 Platform, Enterprise Edition(J2EE)
Source: Computer, August 2000
J2EE and Other Java 2 Platform Editions
Source: Sun Microsystems, Inc.
J2EE and Other Java 2 Platform Editions
Source: P.J. Perrone and V.S.R.R. Chaganti, Building Java Enterprise Systems with J2EE
Java Development and Runtime Environment
Source: P.J. Perrone and V.S.R.R. Chaganti, Building Java Enterprise Systems with J2EE
Java 2 Platform Runtime Architecture
Source: Sun Microsystems, Inc., http://java.sun.com/j2se/1.3/
Java 2 Platform, Standard Edition (J2SE)
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, ...
Source: Sun Microsystems, Inc., J2EE Specification v1.3
J2EE Architecture
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)
Source: Sun Microsystems, Inc., J2EE Specification v1.3
J2EE Interoperability
J2EE Platform Roles
• J2EE Product Provider
• Application Component Provider
• Application Assembler
• Deployer
• System Administrator
• Tool Provider
Source: Sun Microsystems, Inc., JDBC 3.0 Specification
2-Tier Database Access
Source: Sun Microsystems, Inc., JDBC 3.0 Specification
3-Tier Database Access
The Connector Architecture
• Integration of J2EE servers with Enterprise Information Systems (EIS)
• EIS vendor-provided resource adaptors
• Resource adaptor-permitting application servers
Source: Sun Microsystems, Inc., J2EE Connector Architecture Specification
System Level Pluggability
Source: Sun Microsystems, Inc., J2EE Connector Architecture Specification
Connector Architecture Overview
Source: Sun Microsystems, Inc., J2EE Connector Architecture Specification
Connector Architecture Overview
Source: Sun Microsystems, Inc., J2EE Connector Architecture Specification
Connector Architecture in B2B Scenario
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.
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, …
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
Source: Sun Microsystems, Inc., Enterprise JavaBeans 2.0
Client View of Session Beans
Source: Sun Microsystems, Inc., J2EE Specification, v1.3
Accessing Enterprise Beans from Servlets/JavaServer Pages
Source: Sun Microsystems, Inc., J2EE Specification, v1.3
J2EE Deployment
Source: Sun Microsystems, Inc., J2EE Connector Architecture Specification
J2EE Application Life Cycle
Source: P.J. Perrone and V.S.R.R. Chaganti, Building Java Enterprise Systems with J2EE
Overview of Enterprise Applications Integration (EAI)
Source: P.J. Perrone and V.S.R.R. Chaganti, Building Java Enterprise Systems with J2EE
Overview of Enterprise Applications Integration (EAI)
Source: P.J. Perrone and V.S.R.R. Chaganti, Building Java Enterprise Systems with J2EE
EAI with XML
Source: Sun Microsystems, Inc., The J2EE Tutorial
An Example Mid-tier Design
Source: Sun Microsystems, Inc., The J2EE Tutorial
Enterprise Beans of the Example Design