Introduction
     to
    J2EE
Enterprise Architecture types

Enterprise Architecture can be broken into 3
  fundamental layers
• User Interface
• Processing
• Data Storage and access




                                               2
Types of enterprise architecture
1. Single Tier
   All 3 layers of enterprise architecture exist
   on the same system

2.Two Tier Architecture
  - All 3 layers distributed between 2 tiers
  - Generally UI and business logic reside on
     FE and Data Access on Back end


                                                   3
3. Three tier architecture
  - All 3 layers separated logically
  - Physical separation depends on the
    application
  - User Interface- client end
     Processing – Middle / Business Tier(Apps
                  server)
     Database - Back end



                                                4
4. n.Tier Architecture
   - 2nd layer can be broken into multiple layers

           User Interface


          Business model


           Business rules

Business object to data source mapping


            Data Access

                                                    5
Advantages of n tier
1. Improved maintainablity : Applications can
   be easily maintained
2. Consistency: In terms of component design
3. Interoperability: Supports component
   design in any layer and by any technology
4. Flexibility : Freedom to design any type of
   component
5. Scalability: Addition of new components…


                                                 6
Goals of an Enterprise Architecture
•   Robust
•   Performance & Scalability
•   Capitalize adv of OO Design Priniciple
•   Avoid complexity
•   Maintainable and Extensible
•   Ease of testing
•   Reuse of application
•   Support multiple client types
•   Product delivery on time
                                              7
What is J2EE??

• Platform used for n tier application
  development

• Compliant with goals of enterprise
  architecture
• Based on Java 2 Platform , standard edition



                                                8
Benefits of J2EE
1. Simple Architecture
   - Provision of a variety of ways to configure
   architecture of an application
   - supports component based design
     ( updation, replacement and addition of
   new functionality can be wired into
   existing app easily)
     ( Member with specific skill set develops
      components under his/her skill area
   leading to developmental modularization)
                                                   9
2. Easy association with existing Information
  system
  - includes industry accepted APIs thereby
  enabling to access existing Information
  systems(J2SE based systems)
 - Wiring to existing system through
    a) J2EE connector architecture
    b) JDBC API
    c) JNDI
    d) Java Mail

                                                10
3. Freedom of server ,tool and component
  choice
  - Organisations have plethora of choices in
  terms of vendors, hardware, OS,server
  configuration.( This has created market for
  servers for J2EE platform)
  - Component support ensures standardized,
  packged and reused components.Vendors
  will be able to provide solutions which will
  be easily compatible to the current system.

                                                 11
4. Scalabilty
   - component design support has improved
  the scalabilty factor in these application

5. Security model
 - EJB and Servlet provide programmatic
  security mechanisms
 - user based security offered by application at
  deployment time


                                                   12
Features of JEE
•   Platform Independence
•   Managed Objects through containers
•   Reusability
•   Modularity
•   Easy development
•   Simplified EJB technology
•   Enhanced Web services
•   Support for web2.0
•   Ease of Application packaging
•   Light weight JPA(POJO based)

                                         13
JEE Runtime Infrastructure




                             14
• Run time infrastructure is used for managing
  and hosting applications
• Services to manage applications are provided
  by runtime infrastructure.(platform level)
• Services- messaging,security and distributed
  transactions
• JEE accesses the APIs that provide services
  through containers
• J2SE provides core APIs for devloping a JEE
  application

                                                 15
APIs in JEE
1. Enterprise Java Beans (EJB3.0)
  - Server side code for business logic
  - types – session beans & message driven beans
  - Session bean – conversation with client
  - message driven bean – session bean + message
                           listener(asynchronous)
  - Entity beans have been replaced by JPA.



                                                16
2. Java Servlet Technology 2.5
   - Extends the capability of servers
   - Commonly used to extend applications
       hosted by Web servers
 3. Java Server Pages Technology 2.1
   - Text document – HTML+WML+JSP
                      elements
   - Construction of Dynamic content



                                            17
4. Java Server Pages Standard Tag Library 1.1
  - JSTL
  - Provides standard set of JSP tags instead of
    mixing multiple tags by multiple vendors
  - iterator and Conditional tags – control flow
   in XML documents
  - Database access tags using SQL
  - Uses JSP container



                                                   18
5. Java Server Faces 1.2
   - Simplifies UI build process
   - server side UI building framework
   - Provides a set of reusable UIs from which
     new UIs cn be constructed.
6. Java Message Servics 1.1
  - JMS
  - Componnts to send , receive and read
     Messages
  - Lossely coupled and Asynchronous.
                                                 19
7.Java Transaction API1.1
 - JTA – interface for transactions
 - default auto commit and rollbacks
 8. Java mail 1.4
 - email notifications
 - 2 types – application level interface &
  Service provider level interface
 - Java mail + service provider= Internet email


                                                  20
9. JavaBeans Activation Framework1.1
  - JAF
  - provides service for
     data identification
     access encapsulation
     operation identification
     JavaBean creation for identification


                                            21
10. Java API for XML processing1.4(JAXP)
     - Supports XML document processing
      using DOM,Simple API for XML, and
      Extensible style sheet Language
      Transformation(XSLT).
11. Java API for XML web services(JAX-WS)
   -provides web services
12. Java Architecture for XML binding(JAXB)
   - convienient bind between XML schema
  and Java language programs

                                              22
13. SOAP with attachments API (SAAJ)
   - Standard way to send XML documents
  over internet.
14. Streaming API for XML(StAX)
  - Alternative to DOM,Simple API for XML,
    TrAX .
15. Java API for XML registeries(JAXR)
   - provides access to business and general
      purpose regiters over web


                                               23
16. J2EE Connector Architecture
     - Provides solutions for connectivity
  between Application servers and EIS.
17. JDBC API
   - Supports SQL commands in Java
     programing language
 18. Java Persistence API (JPA)
      - Uses ORM approach to bridge gap
       between Object oriented model and
       Relational database
                                             24
19. Java Naming and Directory Interface(JNDI)
  - provides naming and directory functionality
  - enables access to multiple naming and directory
    services
20. Java Authentication and Authorization(JAAS)
   - Authenticates and Authorizes users for JEE
     application.




                                                 25
Architecture of JEE 5
                                     Client Tier
                                                   Client M/c
         App               HTML
         Client            Pages


                     JSP             Web Tier
                                                   JEE Server
          EJB       EJB
                                   Business Tier


                                     EIS Tier      Data BaSe
Server                                             Server




                                                                26
Java EE Containers
• JEE provides services in the form of a
  container for every component
• Containers are interfaces between
  components and Low level platform specific
  functionality
• Components should be deployed in the
  container before use.



                                               27
Container Types
1.EJB Container
 - provides an environment in which one or
  more Enterprise bean will run
 - Combination of classes and interfaces
 - Provides EJB component with
   lifecycle , state management , naming
  services, security mechanisms and
  persistence management.


                                             28
2. Web Container
  - Manages JSP and Servlet
  - Runtime environment for web application
  - Web container is always in a web server
  - provides context and lifecycle management
3. Application client Container
  - Manages execution of application client
  components.
4. Applet Conatainer
   - Manages the lifecycle of applets
                                                29
Developing Java EE 5 Application
Steps to develop a JEE application are

1. Develop application component
2. Compose application components into
 modules
3. Compose modules into application
4. Deploy application




                                         30
Developing Application component
- All the functional units (components) are
 designed in this phase
- component – a class / collection of classes
 and interfaces
- 5 types of components
   EJB,servlets, JSP , applets, application
   client, connectors.
 -


                                                31
Compose application components into modules
 - process of bundling/wiring of components
 -3 types of modules can be designed
   1. EJB module-
      -packaged and deployed as ejb-jar.xml
      - contains class files for ejbs,deployment
          descriptor
      - may contain classes and interfaces for
         ejbs not included in J2EE platform

                                                   32
2. Web module-
   - Packaged and deployed in web.xml file
   - Contains class for servlets,JSP,Static
    documents , class for applet, web
    deployment descriptor.
3. Application client module
   - Packaged into jar files
   - Contains class for client, application
    client deployment descriptor


                                              33
3. Composition of modules into application

- Java EE application is delivered as enterprise
  archive(ear) file.
 - JEE application packages the modules and
  their corresponding deployment descriptors.
 - application.xml is required as deployment
  descriptor of the entire application




                                                   34
JEE application (ear file)

                      application.xml
    Ejb module        Web module                Java module



Ejb module          Web module                Java module
  (jar)               (jar)                      (jar)
Ejb-jar.xml         web.xml                   Application
                                                 client.xml
   ejb                     jsp                       Java

   ejb                   servlet                   Java



                                                              35
4. Application Deployment
 - Involves 2 steps
   1. Installation of the application – the
   deployer copies the ear to the application
   server , generates additional container
   specific classes and interfaces
   2. Configuration of the application- resolves
   all external dependencies and follow the
   application assembly instruction


                                                   36
Probable Architectures

• Applet Client with JSP and Database
   presentation – Applet
   Business     - JSP
   Database - JDBC
• Application Client with EJB
   presentation – JFC/Console application
   Business     - EJB
   Database - JDBC
                                            37
• JSP Client with EJB
   presentation – Web Browser
   Web tier      - JSP
    Business      - EJB
    Database - JDBC
• Web Services for application integration
  presentation – C# application
   Web tier      - Web Services
    Business      - EJB
    Database - JDBC
                                             38

More Related Content

PPTX
J2 ee architecture
DOCX
J2EE Architecture Explained
PPTX
Enterprice java
DOCX
DOCX
J2EE and layered architecture
PPTX
J2 ee container & components
PPT
Ra framework 0.1
PPT
Java J2EE
J2 ee architecture
J2EE Architecture Explained
Enterprice java
J2EE and layered architecture
J2 ee container & components
Ra framework 0.1
Java J2EE

What's hot (20)

PPT
J2EE and Servlet
PDF
Enterprise java unit-1_chapter-1
ODP
Java Web Programming [1/9] : Introduction to Web Application
PPTX
Introduction to ejb and struts framework
PPTX
Java ee introduction
DOCX
Jdbc driver types
PPTX
J2ee seminar
PPTX
Types of Drivers in JDBC
PPT
Session 1 Tp1
PPTX
J2ee architecture
PPTX
EJB3 Basics
PPTX
Spring
PPT
Jdbc drivers
PDF
Lecture 8 Enterprise Java Beans (EJB)
PPTX
Jsp with mvc
PPTX
Chapter2 j2ee
PPTX
JDBC Driver Types
PPT
Introduction to java ee
J2EE and Servlet
Enterprise java unit-1_chapter-1
Java Web Programming [1/9] : Introduction to Web Application
Introduction to ejb and struts framework
Java ee introduction
Jdbc driver types
J2ee seminar
Types of Drivers in JDBC
Session 1 Tp1
J2ee architecture
EJB3 Basics
Spring
Jdbc drivers
Lecture 8 Enterprise Java Beans (EJB)
Jsp with mvc
Chapter2 j2ee
JDBC Driver Types
Introduction to java ee
Ad

Similar to J2 ee architecture (20)

PDF
Summer training java
PPT
Introduction to java_ee
ODP
Intro in JavaEE world (TU Olomouc)
PPT
Summer training java
PPT
J2 EEE SIDES
PDF
PDF
enterprisejavaunit-1chapter-2-210914075956.pdf
PPTX
Enterprise java unit-1_chapter-2
PPTX
Enrterprise Java-Unit 1 (All chapters) for TYIT PPTx
PPTX
Enterprise Java TYIT Sem 5 Unit 1 Chapter 1 and 2 PPT
PPTX
Java enterprise paradise
PDF
Java Platform and IDE Netbeans 6.7 for Developing Enterprise and Web Applicat...
PPTX
Java EE 7 introduction
PDF
Java Interview Questions Answers Guide Section 2
PPTX
J2EE Notes JDBC database Connectiviy and Programs related to JDBC
PDF
Building Enterprise Application with J2EE
PDF
Java EE6 CodeCamp16 oct 2010
PDF
2000: Making IT Happen with J2EE
DOCX
Project report for final year project
PDF
web component_development
Summer training java
Introduction to java_ee
Intro in JavaEE world (TU Olomouc)
Summer training java
J2 EEE SIDES
enterprisejavaunit-1chapter-2-210914075956.pdf
Enterprise java unit-1_chapter-2
Enrterprise Java-Unit 1 (All chapters) for TYIT PPTx
Enterprise Java TYIT Sem 5 Unit 1 Chapter 1 and 2 PPT
Java enterprise paradise
Java Platform and IDE Netbeans 6.7 for Developing Enterprise and Web Applicat...
Java EE 7 introduction
Java Interview Questions Answers Guide Section 2
J2EE Notes JDBC database Connectiviy and Programs related to JDBC
Building Enterprise Application with J2EE
Java EE6 CodeCamp16 oct 2010
2000: Making IT Happen with J2EE
Project report for final year project
web component_development
Ad

More from saurabhshertukde (19)

PPT
Revision sql te it new syllabus
PPT
Oodbms ch 20
PPT
Introduction er & eer
PPT
Introduction er & eer
PPT
Integrity & security
PPT
PPT
Er & eer to relational mapping
PPT
Eer case study
PPT
Chapter 2
PPT
Chapter 1
PPT
Chapter 9
PPT
J2 ee archi
PPT
Software project-scheduling
PPT
Softwareproject planning
PPT
Pressman ch-3-prescriptive-process-models
PPT
Design concepts and principles
PPT
Analysis modelling
PPT
Analysis concepts and principles
PPT
Risk analysis
Revision sql te it new syllabus
Oodbms ch 20
Introduction er & eer
Introduction er & eer
Integrity & security
Er & eer to relational mapping
Eer case study
Chapter 2
Chapter 1
Chapter 9
J2 ee archi
Software project-scheduling
Softwareproject planning
Pressman ch-3-prescriptive-process-models
Design concepts and principles
Analysis modelling
Analysis concepts and principles
Risk analysis

Recently uploaded (20)

PDF
ENT215_Completing-a-large-scale-migration-and-modernization-with-AWS.pdf
PDF
DASA ADMISSION 2024_FirstRound_FirstRank_LastRank.pdf
PDF
How ambidextrous entrepreneurial leaders react to the artificial intelligence...
PDF
Hybrid model detection and classification of lung cancer
PDF
Assigned Numbers - 2025 - Bluetooth® Document
PPTX
Web Crawler for Trend Tracking Gen Z Insights.pptx
PDF
Univ-Connecticut-ChatGPT-Presentaion.pdf
PPT
What is a Computer? Input Devices /output devices
PPTX
MicrosoftCybserSecurityReferenceArchitecture-April-2025.pptx
PDF
August Patch Tuesday
PDF
A Late Bloomer's Guide to GenAI: Ethics, Bias, and Effective Prompting - Boha...
PPT
Module 1.ppt Iot fundamentals and Architecture
PDF
Enhancing emotion recognition model for a student engagement use case through...
PDF
Taming the Chaos: How to Turn Unstructured Data into Decisions
PPTX
observCloud-Native Containerability and monitoring.pptx
PDF
Five Habits of High-Impact Board Members
PDF
DP Operators-handbook-extract for the Mautical Institute
PPTX
Final SEM Unit 1 for mit wpu at pune .pptx
PDF
From MVP to Full-Scale Product A Startup’s Software Journey.pdf
PPTX
Group 1 Presentation -Planning and Decision Making .pptx
ENT215_Completing-a-large-scale-migration-and-modernization-with-AWS.pdf
DASA ADMISSION 2024_FirstRound_FirstRank_LastRank.pdf
How ambidextrous entrepreneurial leaders react to the artificial intelligence...
Hybrid model detection and classification of lung cancer
Assigned Numbers - 2025 - Bluetooth® Document
Web Crawler for Trend Tracking Gen Z Insights.pptx
Univ-Connecticut-ChatGPT-Presentaion.pdf
What is a Computer? Input Devices /output devices
MicrosoftCybserSecurityReferenceArchitecture-April-2025.pptx
August Patch Tuesday
A Late Bloomer's Guide to GenAI: Ethics, Bias, and Effective Prompting - Boha...
Module 1.ppt Iot fundamentals and Architecture
Enhancing emotion recognition model for a student engagement use case through...
Taming the Chaos: How to Turn Unstructured Data into Decisions
observCloud-Native Containerability and monitoring.pptx
Five Habits of High-Impact Board Members
DP Operators-handbook-extract for the Mautical Institute
Final SEM Unit 1 for mit wpu at pune .pptx
From MVP to Full-Scale Product A Startup’s Software Journey.pdf
Group 1 Presentation -Planning and Decision Making .pptx

J2 ee architecture

  • 1. Introduction to J2EE
  • 2. Enterprise Architecture types Enterprise Architecture can be broken into 3 fundamental layers • User Interface • Processing • Data Storage and access 2
  • 3. Types of enterprise architecture 1. Single Tier All 3 layers of enterprise architecture exist on the same system 2.Two Tier Architecture - All 3 layers distributed between 2 tiers - Generally UI and business logic reside on FE and Data Access on Back end 3
  • 4. 3. Three tier architecture - All 3 layers separated logically - Physical separation depends on the application - User Interface- client end Processing – Middle / Business Tier(Apps server) Database - Back end 4
  • 5. 4. n.Tier Architecture - 2nd layer can be broken into multiple layers User Interface Business model Business rules Business object to data source mapping Data Access 5
  • 6. Advantages of n tier 1. Improved maintainablity : Applications can be easily maintained 2. Consistency: In terms of component design 3. Interoperability: Supports component design in any layer and by any technology 4. Flexibility : Freedom to design any type of component 5. Scalability: Addition of new components… 6
  • 7. Goals of an Enterprise Architecture • Robust • Performance & Scalability • Capitalize adv of OO Design Priniciple • Avoid complexity • Maintainable and Extensible • Ease of testing • Reuse of application • Support multiple client types • Product delivery on time 7
  • 8. What is J2EE?? • Platform used for n tier application development • Compliant with goals of enterprise architecture • Based on Java 2 Platform , standard edition 8
  • 9. Benefits of J2EE 1. Simple Architecture - Provision of a variety of ways to configure architecture of an application - supports component based design ( updation, replacement and addition of new functionality can be wired into existing app easily) ( Member with specific skill set develops components under his/her skill area leading to developmental modularization) 9
  • 10. 2. Easy association with existing Information system - includes industry accepted APIs thereby enabling to access existing Information systems(J2SE based systems) - Wiring to existing system through a) J2EE connector architecture b) JDBC API c) JNDI d) Java Mail 10
  • 11. 3. Freedom of server ,tool and component choice - Organisations have plethora of choices in terms of vendors, hardware, OS,server configuration.( This has created market for servers for J2EE platform) - Component support ensures standardized, packged and reused components.Vendors will be able to provide solutions which will be easily compatible to the current system. 11
  • 12. 4. Scalabilty - component design support has improved the scalabilty factor in these application 5. Security model - EJB and Servlet provide programmatic security mechanisms - user based security offered by application at deployment time 12
  • 13. Features of JEE • Platform Independence • Managed Objects through containers • Reusability • Modularity • Easy development • Simplified EJB technology • Enhanced Web services • Support for web2.0 • Ease of Application packaging • Light weight JPA(POJO based) 13
  • 15. • Run time infrastructure is used for managing and hosting applications • Services to manage applications are provided by runtime infrastructure.(platform level) • Services- messaging,security and distributed transactions • JEE accesses the APIs that provide services through containers • J2SE provides core APIs for devloping a JEE application 15
  • 16. APIs in JEE 1. Enterprise Java Beans (EJB3.0) - Server side code for business logic - types – session beans & message driven beans - Session bean – conversation with client - message driven bean – session bean + message listener(asynchronous) - Entity beans have been replaced by JPA. 16
  • 17. 2. Java Servlet Technology 2.5 - Extends the capability of servers - Commonly used to extend applications hosted by Web servers 3. Java Server Pages Technology 2.1 - Text document – HTML+WML+JSP elements - Construction of Dynamic content 17
  • 18. 4. Java Server Pages Standard Tag Library 1.1 - JSTL - Provides standard set of JSP tags instead of mixing multiple tags by multiple vendors - iterator and Conditional tags – control flow in XML documents - Database access tags using SQL - Uses JSP container 18
  • 19. 5. Java Server Faces 1.2 - Simplifies UI build process - server side UI building framework - Provides a set of reusable UIs from which new UIs cn be constructed. 6. Java Message Servics 1.1 - JMS - Componnts to send , receive and read Messages - Lossely coupled and Asynchronous. 19
  • 20. 7.Java Transaction API1.1 - JTA – interface for transactions - default auto commit and rollbacks 8. Java mail 1.4 - email notifications - 2 types – application level interface & Service provider level interface - Java mail + service provider= Internet email 20
  • 21. 9. JavaBeans Activation Framework1.1 - JAF - provides service for data identification access encapsulation operation identification JavaBean creation for identification 21
  • 22. 10. Java API for XML processing1.4(JAXP) - Supports XML document processing using DOM,Simple API for XML, and Extensible style sheet Language Transformation(XSLT). 11. Java API for XML web services(JAX-WS) -provides web services 12. Java Architecture for XML binding(JAXB) - convienient bind between XML schema and Java language programs 22
  • 23. 13. SOAP with attachments API (SAAJ) - Standard way to send XML documents over internet. 14. Streaming API for XML(StAX) - Alternative to DOM,Simple API for XML, TrAX . 15. Java API for XML registeries(JAXR) - provides access to business and general purpose regiters over web 23
  • 24. 16. J2EE Connector Architecture - Provides solutions for connectivity between Application servers and EIS. 17. JDBC API - Supports SQL commands in Java programing language 18. Java Persistence API (JPA) - Uses ORM approach to bridge gap between Object oriented model and Relational database 24
  • 25. 19. Java Naming and Directory Interface(JNDI) - provides naming and directory functionality - enables access to multiple naming and directory services 20. Java Authentication and Authorization(JAAS) - Authenticates and Authorizes users for JEE application. 25
  • 26. Architecture of JEE 5 Client Tier Client M/c App HTML Client Pages JSP Web Tier JEE Server EJB EJB Business Tier EIS Tier Data BaSe Server Server 26
  • 27. Java EE Containers • JEE provides services in the form of a container for every component • Containers are interfaces between components and Low level platform specific functionality • Components should be deployed in the container before use. 27
  • 28. Container Types 1.EJB Container - provides an environment in which one or more Enterprise bean will run - Combination of classes and interfaces - Provides EJB component with lifecycle , state management , naming services, security mechanisms and persistence management. 28
  • 29. 2. Web Container - Manages JSP and Servlet - Runtime environment for web application - Web container is always in a web server - provides context and lifecycle management 3. Application client Container - Manages execution of application client components. 4. Applet Conatainer - Manages the lifecycle of applets 29
  • 30. Developing Java EE 5 Application Steps to develop a JEE application are 1. Develop application component 2. Compose application components into modules 3. Compose modules into application 4. Deploy application 30
  • 31. Developing Application component - All the functional units (components) are designed in this phase - component – a class / collection of classes and interfaces - 5 types of components EJB,servlets, JSP , applets, application client, connectors. - 31
  • 32. Compose application components into modules - process of bundling/wiring of components -3 types of modules can be designed 1. EJB module- -packaged and deployed as ejb-jar.xml - contains class files for ejbs,deployment descriptor - may contain classes and interfaces for ejbs not included in J2EE platform 32
  • 33. 2. Web module- - Packaged and deployed in web.xml file - Contains class for servlets,JSP,Static documents , class for applet, web deployment descriptor. 3. Application client module - Packaged into jar files - Contains class for client, application client deployment descriptor 33
  • 34. 3. Composition of modules into application - Java EE application is delivered as enterprise archive(ear) file. - JEE application packages the modules and their corresponding deployment descriptors. - application.xml is required as deployment descriptor of the entire application 34
  • 35. JEE application (ear file) application.xml Ejb module Web module Java module Ejb module Web module Java module (jar) (jar) (jar) Ejb-jar.xml web.xml Application client.xml ejb jsp Java ejb servlet Java 35
  • 36. 4. Application Deployment - Involves 2 steps 1. Installation of the application – the deployer copies the ear to the application server , generates additional container specific classes and interfaces 2. Configuration of the application- resolves all external dependencies and follow the application assembly instruction 36
  • 37. Probable Architectures • Applet Client with JSP and Database presentation – Applet Business - JSP Database - JDBC • Application Client with EJB presentation – JFC/Console application Business - EJB Database - JDBC 37
  • 38. • JSP Client with EJB presentation – Web Browser Web tier - JSP Business - EJB Database - JDBC • Web Services for application integration presentation – C# application Web tier - Web Services Business - EJB Database - JDBC 38