java 2 platform, enterprise edition (j2ee). source: computer, august 2000 j2ee and other java 2...
Post on 21-Dec-2015
225 views
TRANSCRIPT
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, ...
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 Platform Roles
• J2EE Product Provider
• Application Component Provider
• Application Assembler
• Deployer
• System Administrator
• Tool Provider
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
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., J2EE Specification, v1.3
Accessing Enterprise Beans from Servlets/JavaServer Pages
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)