Presentation is loading. Please wait.

Presentation is loading. Please wait.

J2EE Architecture Overview Mark Hapner, Lead Architect J2EE Bill Shannon, Distinguished Engineer Sun Microsystems.

Similar presentations


Presentation on theme: "J2EE Architecture Overview Mark Hapner, Lead Architect J2EE Bill Shannon, Distinguished Engineer Sun Microsystems."— Presentation transcript:

1 J2EE Architecture Overview Mark Hapner, Lead Architect J2EE Bill Shannon, Distinguished Engineer Sun Microsystems

2 The J2EE Platform " Platform Specification – Defines JavaTM 2 Enterprise Edition (J2EE) requirements " Compatibility Test Suite – Validates JavaTM 2 Enterprise Edition (J2EE) compatibility " Reference Implementation – Operational JavaTM 2 Enterprise Edition (J2EE) " J2EE Blueprints – Describes how to build JavaTM 2 Enterprise Edition (J2EE) applications

3 Write Once, Run Anywhere " Develop – With J2EE components " Package – Universal J2EE application package " Deploy & Run – On any J2EE product

4 J2EE Components and Containers JNDI J2SE JMS RMI/IIOP JDBC Database App Client App Client Container HTTP/ HTTPS J2SE RMI J2SE JNDI JMS RMI/IIOP JDBC JTA JavaMail JAF JNDI JMS RMI/IIOP JDBC JTA JavaMail JAF Applet Container Applet JSP Servlet EJB Web Container EJB Container RMI J2SE

5 JSP/Servlet Overview " Java Server Pages – Merges HTML/XML template with content dynamically generated with Java – Extensible tag libraries – Source is dynamically compiled on first use " Servlets – Implement dynamic content with Java – Built-in support for session and request management

6 EJB Overview " EJB – Each EJB is an multi-user, transacted `service' " Session Bean – Implements a `tool' or `application' service " Entity Beans – Implements a service of long lived business entities " Container Managed Transactions – Automatically wraps a method in a transaction

7 Session Beans " Stateful Session Beans – Container manages client state in a bean's fields – 'stateless' model is not forced on developers " Stateless Session Beans – If there is no client state, container optimizes management of EJB instances

8 Entity Beans " EJB defines model for 'persistent' beans – Allows container to optimize their management – Makes it easy to create a business object facade " Bean Managed Persistence – Write your own SQL with JDBC/SQLJ " Container Managed Persistence – Container handles moving data to/from bean – Limited facility in EJB 1.1, enhancements in 2.0

9 J2EE Containers " Container vs Framework – No complicated APIs – Services are injected " Containers Manage – Threads, transactions, administration, deployment, distribution – May also provide load balancing and fail-over – All with no change to component code

10 Application Packaging EJB Application Client Module EJB EJB WEB WEB Web Client Module EJB Module Deployment Tool APP DD DD DD DD DD DD DD

11 Application Life Cycle CreationAssemblyDeployment Created by Component Developer Assembled and Augmented by Application Assembler Processed by Deployer Deploy Enterprise Components J2EE Container J2EE Application J2EE Modules

12 J2EE Status " J2EE 1.2 Shipped 12/17/99 – Specifications – Reference Implementation – Compatibility Test Suite – J2EE Blueprints Beta " J2EE Blueprints Book Coming Soon!

13 Some J2EE Partners " Allaire " BEA/Weblogic " Bluestone " Bull " Forte " Fujitsu " Gemstone " Haht " IBM " Inline " iPlanet " Iona " Luna " Novera " Oracle " Persistence " Progress " Secant " Siemens " SilverStream " Sybase " TradeX " Versant " Vision

14 Some Users of J2EE " Air Canada " Celera Genomics " Countrywide " Covad Communications " Electric Boat " Equifax " FAA " Nations Bank " Qwest " Ratheon " Rorke Data " Scottish Equitable " Sparks.com " Trip.com

15 J2EE Scenarios

16 Book Catalog Browser " Database contains catalog " JSP generates catalog pages – Using HTML template – Combined with catalog data

17 Book Purchase " Session contains shopping cart data " Orders entered into Orders DB " Purchase transaction programmed with JDBC

18 Book Purchase " JSP contains no Java code – Written by presentation expert " JSP Tag Library provides Browse and Purchase – Written by JDBC and database expert

19 Book Purchase " Session EJB handles purchase transaction – App Server pools DB connections – App Server manages transactions

20 Book Purchase " Book and Order Entity EJBs – Persistent business objects – Hide database details

21 Catalog Management " App Client for `dedicated' catalog admin – XML `raw' book data – App Client provides more interactive GUI

22 J2EE 1.3 (JSR 58)

23 Connectors (JSR 16) " Standard SPI for integrating J2EE with other systems – CICS, IMS, SAP, PeopleSoft, Baan, etc – Connection pooling – Transactions – Security – Common Client Interface – Standard packaging for resource adapter

24 EJB 2.0 (JSR 19) " EJB Entity Container Managed Persistence – Dependent objects, Relationships, Finder query lang " EJB/JMS Integration – Message driven EJB " EJB Interoperability " Home Methods

25 Other Additions " XML Parsing API (JSR 5) " JSP 1.2/Servlet 2.3 (JSR 53) " JSP Standard Tag Lib (JSR 52) " JMS becomes required

26 More Info " " "


Download ppt "J2EE Architecture Overview Mark Hapner, Lead Architect J2EE Bill Shannon, Distinguished Engineer Sun Microsystems."

Similar presentations


Ads by Google