310 likes | 720 Views
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.
E N D
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 Source: P.J. Perrone and V.S.R.R. Chaganti, Building Java Enterprise Systems with J2EE
Java 2 Platform Runtime Architecture Source: P.J. Perrone and V.S.R.R. Chaganti, Building Java Enterprise Systems with J2EE
Java 2 Platform, Standard Edition (J2SE) Source: Sun Microsystems, Inc., http://java.sun.com/j2se/1.3/
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, ...
J2EE Architecture Source: Sun Microsystems, Inc., J2EE Specification v1.3
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)
J2EE Interoperability Source: Sun Microsystems, Inc., J2EE Specification v1.3
J2EE Platform Roles • J2EE Product Provider • Application Component Provider • Application Assembler • Deployer • System Administrator • Tool Provider
2-Tier Database Access Source: Sun Microsystems, Inc., JDBC 3.0 Specification
3-Tier Database Access Source: Sun Microsystems, Inc., JDBC 3.0 Specification
The Connector Architecture • Integration of J2EE servers with Enterprise Information Systems (EIS) • EIS vendor-provided resource adaptors • Resource adaptor-permitting application servers
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 Source: Sun Microsystems, Inc., J2EE Connector Architecture Specification
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
Client View of Session Beans Source: Sun Microsystems, Inc., Enterprise JavaBeans 2.0
Accessing Enterprise Beans from Servlets/JavaServer Pages Source: Sun Microsystems, Inc., J2EE Specification, v1.3
J2EE Deployment Source: Sun Microsystems, Inc., J2EE Specification, v1.3
J2EE Application Life Cycle Source: Sun Microsystems, Inc., J2EE Connector Architecture Specification
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: P.J. Perrone and V.S.R.R. Chaganti, Building Java Enterprise Systems with J2EE
An Example Mid-tier Design Source: Sun Microsystems, Inc., The J2EE Tutorial
Enterprise Beans of the Example Design Source: Sun Microsystems, Inc., The J2EE Tutorial