J2EE Architecture Overview Mark Hapner, Lead Architect J2EE Bill Shannon, Distinguished Engineer Sun...
-
Upload
tyler-doten -
Category
Documents
-
view
221 -
download
0
Transcript of J2EE Architecture Overview Mark Hapner, Lead Architect J2EE Bill Shannon, Distinguished Engineer Sun...
![Page 1: J2EE Architecture Overview Mark Hapner, Lead Architect J2EE Bill Shannon, Distinguished Engineer Sun Microsystems.](https://reader033.fdocuments.net/reader033/viewer/2022051211/551a780555034643688b534f/html5/thumbnails/1.jpg)
J2EE Architecture Overview
Mark Hapner, Lead Architect J2EEBill Shannon, Distinguished Engineer
Sun Microsystems
![Page 2: J2EE Architecture Overview Mark Hapner, Lead Architect J2EE Bill Shannon, Distinguished Engineer Sun Microsystems.](https://reader033.fdocuments.net/reader033/viewer/2022051211/551a780555034643688b534f/html5/thumbnails/2.jpg)
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
![Page 3: J2EE Architecture Overview Mark Hapner, Lead Architect J2EE Bill Shannon, Distinguished Engineer Sun Microsystems.](https://reader033.fdocuments.net/reader033/viewer/2022051211/551a780555034643688b534f/html5/thumbnails/3.jpg)
Write Once, Run Anywhere
Develop With J2EE components
Package Universal J2EE application package
Deploy & Run On any J2EE product
![Page 4: J2EE Architecture Overview Mark Hapner, Lead Architect J2EE Bill Shannon, Distinguished Engineer Sun Microsystems.](https://reader033.fdocuments.net/reader033/viewer/2022051211/551a780555034643688b534f/html5/thumbnails/4.jpg)
J2EE Components and ContainersJN
DI
JND
I
J2SEJ2SE
JMS
JMS
RM
I/IIO
PR
MI/I
IOP
JDB
CJD
BC
DatabaseDatabase
AppAppClientClient
App Client App Client ContainerContainer
HTTP/HTTP/HTTPSHTTPS
J2SEJ2SE
RMIRMI
J2SEJ2SE
JND
IJN
DI
JMS
JMS
RM
I/IIO
PR
MI/I
IOP
JDB
CJD
BC
JTA
JTA JavaMailJavaMail
JAFJAF JND
IJN
DI
JMS
JMS
RM
I/IIO
PR
MI/I
IOP
JDB
CJD
BC
JTA
JTA JavaMailJavaMail
JAFJAF
HTTP/HTTP/HTTPSHTTPS
Applet ContainerApplet Container
AppletApplet JSPJSP ServletServlet EJBEJB
Web ContainerWeb Container EJB ContainerEJB Container
RMIRMI
J2SEJ2SE
![Page 5: J2EE Architecture Overview Mark Hapner, Lead Architect J2EE Bill Shannon, Distinguished Engineer Sun Microsystems.](https://reader033.fdocuments.net/reader033/viewer/2022051211/551a780555034643688b534f/html5/thumbnails/5.jpg)
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
![Page 6: J2EE Architecture Overview Mark Hapner, Lead Architect J2EE Bill Shannon, Distinguished Engineer Sun Microsystems.](https://reader033.fdocuments.net/reader033/viewer/2022051211/551a780555034643688b534f/html5/thumbnails/6.jpg)
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
![Page 7: J2EE Architecture Overview Mark Hapner, Lead Architect J2EE Bill Shannon, Distinguished Engineer Sun Microsystems.](https://reader033.fdocuments.net/reader033/viewer/2022051211/551a780555034643688b534f/html5/thumbnails/7.jpg)
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
![Page 8: J2EE Architecture Overview Mark Hapner, Lead Architect J2EE Bill Shannon, Distinguished Engineer Sun Microsystems.](https://reader033.fdocuments.net/reader033/viewer/2022051211/551a780555034643688b534f/html5/thumbnails/8.jpg)
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
![Page 9: J2EE Architecture Overview Mark Hapner, Lead Architect J2EE Bill Shannon, Distinguished Engineer Sun Microsystems.](https://reader033.fdocuments.net/reader033/viewer/2022051211/551a780555034643688b534f/html5/thumbnails/9.jpg)
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
![Page 10: J2EE Architecture Overview Mark Hapner, Lead Architect J2EE Bill Shannon, Distinguished Engineer Sun Microsystems.](https://reader033.fdocuments.net/reader033/viewer/2022051211/551a780555034643688b534f/html5/thumbnails/10.jpg)
Application Packaging
EJBEJB
ApplicationApplicationClient ModuleClient Module
EJBEJB
EJBEJB
WEBWEB
WEBWEB
Web Client Web Client ModuleModule
EJBEJBModuleModule
Deployment Deployment ToolTool
APPAPPDDDD
DDDD
DDDD
DDDD
DDDD
DDDD
DDDD
11
22
33
11
22
33
![Page 11: J2EE Architecture Overview Mark Hapner, Lead Architect J2EE Bill Shannon, Distinguished Engineer Sun Microsystems.](https://reader033.fdocuments.net/reader033/viewer/2022051211/551a780555034643688b534f/html5/thumbnails/11.jpg)
Application Life CycleCreation Assembly Deployment
Created by Component Developer
Assembledand Augmentedby Application
Assembler
Processed by Deployer
Deploy
EnterpriseComponents
J2EE Container
J2EE Application
J2EE Modules
![Page 12: J2EE Architecture Overview Mark Hapner, Lead Architect J2EE Bill Shannon, Distinguished Engineer Sun Microsystems.](https://reader033.fdocuments.net/reader033/viewer/2022051211/551a780555034643688b534f/html5/thumbnails/12.jpg)
J2EE Status
J2EE 1.2 Shipped 12/17/99 Specifications Reference Implementation Compatibility Test Suite J2EE Blueprints Beta
J2EE Blueprints Book Coming Soon!
![Page 13: J2EE Architecture Overview Mark Hapner, Lead Architect J2EE Bill Shannon, Distinguished Engineer Sun Microsystems.](https://reader033.fdocuments.net/reader033/viewer/2022051211/551a780555034643688b534f/html5/thumbnails/13.jpg)
Some J2EE Partners
Allaire BEA/Weblogic Bluestone Bull Forte Fujitsu Gemstone Haht
IBM Inline iPlanet Iona Luna Novera Oracle Persistence
ProgressSecantSiemensSilverStreamSybaseTradeXVersantVision
![Page 14: J2EE Architecture Overview Mark Hapner, Lead Architect J2EE Bill Shannon, Distinguished Engineer Sun Microsystems.](https://reader033.fdocuments.net/reader033/viewer/2022051211/551a780555034643688b534f/html5/thumbnails/14.jpg)
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
![Page 15: J2EE Architecture Overview Mark Hapner, Lead Architect J2EE Bill Shannon, Distinguished Engineer Sun Microsystems.](https://reader033.fdocuments.net/reader033/viewer/2022051211/551a780555034643688b534f/html5/thumbnails/15.jpg)
J2EE Scenarios
![Page 16: J2EE Architecture Overview Mark Hapner, Lead Architect J2EE Bill Shannon, Distinguished Engineer Sun Microsystems.](https://reader033.fdocuments.net/reader033/viewer/2022051211/551a780555034643688b534f/html5/thumbnails/16.jpg)
Book Catalog Browser
Database contains catalog JSP generates catalog pages
Using HTML template Combined with catalog data
![Page 17: J2EE Architecture Overview Mark Hapner, Lead Architect J2EE Bill Shannon, Distinguished Engineer Sun Microsystems.](https://reader033.fdocuments.net/reader033/viewer/2022051211/551a780555034643688b534f/html5/thumbnails/17.jpg)
Book Purchase
Session contains shopping cart data Orders entered into Orders DB Purchase transaction programmed with JDBC
![Page 18: J2EE Architecture Overview Mark Hapner, Lead Architect J2EE Bill Shannon, Distinguished Engineer Sun Microsystems.](https://reader033.fdocuments.net/reader033/viewer/2022051211/551a780555034643688b534f/html5/thumbnails/18.jpg)
Book Purchase
JSP contains no Java code Written by presentation expert
JSP Tag Library provides Browse and Purchase Written by JDBC and database expert
![Page 19: J2EE Architecture Overview Mark Hapner, Lead Architect J2EE Bill Shannon, Distinguished Engineer Sun Microsystems.](https://reader033.fdocuments.net/reader033/viewer/2022051211/551a780555034643688b534f/html5/thumbnails/19.jpg)
Book Purchase
CatalogBrowse JSP
Purchase JSP
HTTPSOrders
Browse JSP Taglib
Purchase EJB
HTTP
Session EJB handles purchase transaction App Server pools DB connections App Server manages transactions
![Page 20: J2EE Architecture Overview Mark Hapner, Lead Architect J2EE Bill Shannon, Distinguished Engineer Sun Microsystems.](https://reader033.fdocuments.net/reader033/viewer/2022051211/551a780555034643688b534f/html5/thumbnails/20.jpg)
Book Purchase
Book and Order Entity EJBs Persistent business objects Hide database details
![Page 21: J2EE Architecture Overview Mark Hapner, Lead Architect J2EE Bill Shannon, Distinguished Engineer Sun Microsystems.](https://reader033.fdocuments.net/reader033/viewer/2022051211/551a780555034643688b534f/html5/thumbnails/21.jpg)
Catalog Management
App Client for `dedicated' catalog admin XML `raw' book data App Client provides more interactive GUI
![Page 22: J2EE Architecture Overview Mark Hapner, Lead Architect J2EE Bill Shannon, Distinguished Engineer Sun Microsystems.](https://reader033.fdocuments.net/reader033/viewer/2022051211/551a780555034643688b534f/html5/thumbnails/22.jpg)
J2EE 1.3 (JSR 58)
![Page 23: J2EE Architecture Overview Mark Hapner, Lead Architect J2EE Bill Shannon, Distinguished Engineer Sun Microsystems.](https://reader033.fdocuments.net/reader033/viewer/2022051211/551a780555034643688b534f/html5/thumbnails/23.jpg)
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
![Page 24: J2EE Architecture Overview Mark Hapner, Lead Architect J2EE Bill Shannon, Distinguished Engineer Sun Microsystems.](https://reader033.fdocuments.net/reader033/viewer/2022051211/551a780555034643688b534f/html5/thumbnails/24.jpg)
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
![Page 25: J2EE Architecture Overview Mark Hapner, Lead Architect J2EE Bill Shannon, Distinguished Engineer Sun Microsystems.](https://reader033.fdocuments.net/reader033/viewer/2022051211/551a780555034643688b534f/html5/thumbnails/25.jpg)
Other Additions
XML Parsing API (JSR 5) JSP 1.2/Servlet 2.3 (JSR 53) JSP Standard Tag Lib (JSR 52) JMS becomes required
![Page 26: J2EE Architecture Overview Mark Hapner, Lead Architect J2EE Bill Shannon, Distinguished Engineer Sun Microsystems.](https://reader033.fdocuments.net/reader033/viewer/2022051211/551a780555034643688b534f/html5/thumbnails/26.jpg)
More Info
http://java.sun.com/j2ee http://java.sun.com/xml http://java.sun.com/jcp