Docstoc

06_C_J2EE_Architecture

Document Sample
06_C_J2EE_Architecture Powered By Docstoc
					J2EE Architecture
  Olivier de Pertat




                      IT GROUP
                        J2EE

Stands for Java 2 Enterprise Edition.

Structure :
   Based upon Java 2 Standard Edition.
   plus Enterprise specific API.


Server oriented platform.

Specification concerning application development not
the physical implementation.

Write Once Run Anywhere !
2-tiers Architecture
     3 tiers Architecture


       User Interface


     Application Logic



          XML            Directory   LDAP (Active
DB      Documents         Service    Directory) par ex
            n-tiers Architecture


The n-tiers application logic structure is
based upon the function based rather than
physically.
  Graphical User interface (GUI / IHM)
  Presentation logic
  Business logic
  Infrastructure services
        n-tiers Architecture (2)

 Browser
                                          Firewall

                     Application Client

Presentation Logic
                             Services
 Business Logic



                 XML           Directory
   DB          Documents        Service
      n-tiers J2EE Architecture (1)
                              System Capable
HTML Form       Java Applet   of Presenting Data


 Interface       Interface      Interface
Application     Application    Application
component       component      component

              DB Middleware

 Directory                         XML
  Service          DB            Documents
      n-tiers J2EE Architecture (2)

Architecture n-tiers
“middle-tier” Application logic is
MulltiApplication oriented rather than
MonoApplication.
Objects must have normalized
communication Interfaces.
Aim : write open standards built on Java
Technology
J2EE Architecture (1)
            J2EE Architecture (2)

Applet Container
  Browser’ Embedded Application
  Clients : You & me


Web Container
  Runs Servlets & JSP Pages
  Clients : Web Browsers


EJB Container
  Runs Enterprise Java Beans.
  Clients : EJB & RMI Application
                                 J2EE Core API (1/2)

              API                               Function                   1.2   1.3   1.4
Enterprise                             Business Logic distributed
                                                                           1.1   2.0   2.1
JAVA Bean (EJB)                        components
                                     Java Distributed Components.
Remote Method Invocation (RMI)                                             1.0
                                     RMI-IIOP Connections.
Java Naming and Directory           Java & CORBA Naming services,
                                                                           1.2   1.2
Interface (JNDI)                    LDAP Directories…
Java Database                     Database access, plus an Enterprise
                                                                           2.0   2.0   3.0
Connectivity (JDBC)               specific extension to the standard API
Java Transaction API (JTA)
                                     Distributed Transaction Support       1.0   1.0
Java Transaction Service (JTS)
                                  Messaging support through Messages
Java Messaging Service (JMS)                                               1.0   1.0
                                  Oriented Middleware (MOM)
Java IDL                              CORBA Connection in Java.            1.1   1.2
JavaMail                                       e-mail API.                 1.1   1.2
JavaBeans Activation                   Java Activation Framework
                                                                                 1.2
Framework (JAF)                        (JavaMail : MIME)
                                J2EE Core API (2/2)

              API                              Function                 1.2   1.3   1.4
                                 Server Component that extends
Servlets                                                                2.2   2.3   2.4
                                 server functionalities. HTTPServlet.
Java Server Pages (JSP)                                                 1.1   1.2
                                 Connector Common Architecture to
J2EE Connector Architecture
                                 Access third part resources such as     -    1.0
(JCA)
                                 CICS, Tuxedo, SAP…
Java API for XML Parsing         XML parsing, analysis and
                                                                         -    1.1
(JAXP)                           management in Java.
Java Authentication and
                                 Secure data exchanges.                       1.0
Authorization Services (JAAS)
       J2EE Container architecture (1)

    Application components - JSPs EJBs etc.
    Deployment descriptors – XML file describing application
    components
    Component contract – API extended or implemented by
    the application components.
    Container service APIs – services provided by the
    container.
    Declarative services – contracts between the container &
    the components. A DD is needed for each set of
    components.
    Other container services – other services involved in the
    component life cycle (resource pooling, garbage collection).
.
                           J2EE Container architecture (2)

                                       Container Contract
Other container services



                                                    Application




                                                                     Declarative services
                             Application            Component
                             Component                  Deployment
                                Deployment              Descriptor
                                Descriptor
                                              Application
                                              Component
                                                 Deployment
                                                 Descriptor


                                    Container Service APIs
                 J2EE Servers

Component oriented Technology :
  WEB Components :
    Servlets : server-side application able to handle HTTP
    requests.
    JSP : enables an easy association between components
    & WEB pages. JSP are a Servlets extension.
  EJB : business logic layer
    Session Beans :
        Statefull session Bean
        Stateless session Bean
    Entity Bean
    Message Driven Beans
                         MVC Design Pattern

                 Access Servlet                                      Business Components
                  (Controller)                                             (Model)
HTTP Request                                 1 –Components Calls
                 Parameters Analysis
               Business Components Call                            Interface
                  Error Management
                        JSP call                                   Interface
                                                2 – Calls output




                                  3 – Output JSP page




                     JSP (View)
  Page HTML    Data Components integration
                    HTML Generation
                     Multi-Channel
The JSP/Servlets/EJB Model
                  Real Architecture : insurance company
 HTML Clients                                                                                Data Servers Unix
Windows Clients
                                      UNIX Application Servers

                                Components Server : WebSphere Application Server
                                 Servlet Engine                                             Oracle

                                                                                   JDBC                  Database
            HTTP       HTTP         Access
          HTML / XML   Server       Servlets
                                                                                            Authentication Server
                                                  EJB Session
                       Apache
                                                                 Java Objects        LDAP
                                   Dynamic               EJB Container
                                   JSP pages                                                LDAP
                                                                                            Server
                                                                                                      User Directory
CICS Integration




 Source : IBM
                         Architectures
                         DCOM / J2EE
                                  Microsoft                         J2EE

Operating System            Windows NT (4, 2000)                   Every OS

Browser                        Internet Explorer                Every browser
Browsers’ Components                ActiveX                         Applets
Servers                               IIS
WEB Server Components                ASP                         Servlets/JSP
Application Server                MTS-COM                       EJB Container
Communication Protocol              DCOM                       RMI, IIOP, DCOM
Database Access                 ADO, OLE DB                      JDBC SQL J
Transaction Management          Microsoft DTC                         JTS
                                                            Java security Services,
Security                       Security Services
                                                            JAAS…
                                                         Every Directory service trough
Directories               Registry or Active Directory
                                                         JNDI
      Java Enterprise Market Leaders

Sun Microsystems                IBM
  Platform Java                     WebSphere
  Les specifications                Visual Age for Java
  Forte 4 Java                      Eclipse
                                    JDK (Linux x86, s390...)
  Sun One Application Server
Apache Group                    Oracle
                                    Oracle 9i
  Apache
                                    IAS (ex OAS)
  Tomcat (JSP + Servlets)
  XML (Xerces, Xalan…)
  Developments Tools (Ant...)   Imprise
                                    JBuilder…
BEA
  WebLogic
  WebGain (previously Visual    Allaire
  Café)                             JRun..

				
DOCUMENT INFO
Shared By:
Categories:
Tags:
Stats:
views:0
posted:5/15/2012
language:Latin
pages:21
fanzhongqing fanzhongqing http://
About