SlideShare a Scribd company logo
ENTERPRISE JAVA
UNIT-1
CHAPTER-2
• JAVA EE ARCHITECTURE
• Java EE Server
• Java EE Containers
By
Prof. Sandeep Vishwakarma
Java EEArchitecture
•Java EE Platform is designed to help
developers create large scale,multi-
tiered,scalable,reliable and secure network
applications. A distributed, multi-tiered,
application model can be described as an
enterprise application as these applications
are designed to solve the problems
encountered by large enterprises.
Following Factors must be considered
Scalability: The capability of an application to adapt to any new
hardware environment.
Availability: The ability of an application to cater to the
increased demands from clients.
Extensibility: The ability of an application to incrernentally add
features from time to time to improveperformance and provide
better functionality to the client.
Maintainability: The ability of an application to respond to bug-
fixes with the minimum utilization of in terms of people, time and
technology.
Security: The ability of an application to maintain the integrity of
data.
Performance: The ability of an application to respond to a client
request in the minimum time.
Enterprise architecture is divided into following tiers
• Client Tier Services run on Client Machine.
• Web Tier Services run on the Java EE
Server.
• Business Tier Services run on the Java EE
Server.
• Enterprise Information System Services run
on the Database Server Machine.
Types of SystemArchitecture
•Single Tier Architecture
•Two Tier Architecture
•3-Tier Architecture
•Multitier Architecture
Single TierArchitecture:
Some applications are written to run on a single
computer. All the services provided by the
application i.e. the user interface, persistent data
access and the logic that processes the data input by
the user and read and displayed to the user from a
data store, all exist on the same physical machine
and are thus lumped together in the application.
 Hence in a Single-tier architecture:
• The user interface of a Web application i.e. the
presentation layer
• The middle ware i.e. the business rules
• The data access layer
Single Tier Architecture
Advantages:
• Simplestand least expensive alternative.
• Less equipment to purchase and maintain.
Disadvantages:
• This type of implementation is lower security and the
lack of scalability. An architecture is scalable when it
can be easily expanded or augmented to meet
increasing performance needs.
• Having all of the site's major components and data on
a single computer behind the domain firewall leaves
the site more vulnerable to malicious attacks.
• Running all of the site's components on a single
computer also limits expansion and optimization
possibilities.
Two TierArchitecture:
In this architecture, an application is divided into two
components:
Client
• Implements the user interface
• Contains business logic
Server
• Used to store and access business data, captured by
the user interface run on the
• Client in a data store at the Server
 Hence in a two-tier architecture:
• The User Interface is always physically located in the
user's desktop (i.e. the Client)
• The database management services are always
physically located on a Server
Two Tier Architecture
Advantages:
• Adds additional security by removing sensitive
customer data from the single computer
• Having the database on a separate computer
improves the overall performance of the site
• Allows optimizing each machine for more
specific performance requirements
Disadvantages:
• The increased cost and complexity of the
architecture
3-TierArchitecture:
 These are classified into 3 layer.
• User Services - Presentation Layer: Provides service
such as the Graphical User Interface and other
automation tasks that the application has to perform
• Business Services - Business Layer: Implements
business rules. This layer encapsulates the business logic
from users such that they need not know how business
logic is applied when business is upgraded, only the
business layer is affected and must be upgrade the rest of
the application services can remain untouched.
• Data Services - Data Layer: Provides data availability
and integrity. It is responsible for adding, modifying and
deleting data from the data store.
3-Tier Architecture
Advantage:-
There are several benefits to using n-tier architecture for your
software.
• Secure: You can secure each of the three tiers separately using
different methods.
• Easy to manage: You can manage each tier separately, adding or
modifying each tier without affecting the other tiers.
• Scalable: If you need to add more resources, you can do it per
tier, without affecting the other tiers.
• Flexible: Apart from isolated scalability, you can also expand
each tier in any manner that your requirements dictate.
Disadvantage:-
• Performance: It seems a paradox that having the several
components split to allow better efficiency and performance may
result in the risk of lower performance.
MultitierArchitecture:
 Client Tier:
• The client tier includes the web components such as
Servlets, JSP or standalone Java Desktop applications.
• This tier provides dynamic interfaces to the middle tier.
 Middle Tier:
• This is also called as the server tier.
• In the middle tier enterprise beans and web services
encapsulate distributable business logic for the
applications which are reusable.
• The JEE application server contains the server-tier
components which provides the platform for these web
components for actions to be performed and data to be
stored / persisted.
MultitierArchitecture….Continue:
 Enterprise data tier:
• The enterprise level data is stored / persisted
preferably or typically in a relational database.
• In this tier, the JEE applications comprises of
components, containers and services.
• All the web components (Servlets, JSP) provide
dynamic requests and responses from a web page.
• The EJB components contain the server-side
business logic for enterprise applications.
Java EE Server:
• A Java EE server is a server application that
implements the Java EE platform APIs and provides
the standard Java EE services.
• Java EE servers are sometimes called application
servers, because they allow you to serve application
data to clients, much like web servers serve web
pages to web browsers.
• Java EE servers host several application component
types that correspond to the tiers in a multi-tiered
application.
• The Java EE server provides services to these
components in the form of a container
Java EE Containers:
• Java EE containers are the interface between
the component and the lower-level
functionality provided by the platform to
support that component.
• The functionality of the container is defined by
the platform, and is different for each
component type.
• The server allows the different component
types to work together to provide functionality
in an enterprise application.
• The Java EE security model lets you configure a web
component or enterprise bean so that system resources
are accessed only by authorized users.
• The Java EE transaction model lets you specify
relationships among methods that make up a single
transaction so that all methods in one transaction are
treated as a single unit.
• JNDI lookup services provide a unified interface to
multiple naming and directory services in the enterprise
so that application components can access these services.
• The Java EE remote connectivity model manages low-
level communications between clients and enterprise
beans. After an enterprise bean is created, a client invokes
methods on it as if it were in the same virtual machine.
 Container Services
Java EE Container
Container Types:
There are three types of containers
• The Web Container
• The Application Client Container
• The EJB Container
The Web Container:
• The web container is the interface between web
components and the web server.
• A web component can be a servlet, a Java
Server Faces Facelets page, or a JSP page.
• The container manages the component's
lifecycle, dispatches requests to application
components, and provides interfaces to context
data, such as information about the current
request.
TheApplication Client Container:
• The application client container is the interface
between Java EE application clients, which are
special Java SE applications that use Java EE
server components, and the Java EE server.
• The application client container runs on the
client machine, and is the gateway between the
client application and the Java EE server
components that the client uses.
The EJB Container:
• The EJB container is the interface between
enterprise beans, which provide the business
logic in a Java EE application, and the Java EE
server.
• The EJB container runs on the Java EE server
and manages the execution of an application's
enterprise beans
Enterprise java unit-1_chapter-2

More Related Content

What's hot

Hibernate Presentation
Hibernate  PresentationHibernate  Presentation
Hibernate Presentation
guest11106b
 
An Introduction To Java Web Technology
An Introduction To Java Web TechnologyAn Introduction To Java Web Technology
An Introduction To Java Web Technology
vikram singh
 

What's hot (20)

Hibernate Presentation
Hibernate  PresentationHibernate  Presentation
Hibernate Presentation
 
Servlet
Servlet Servlet
Servlet
 
Request dispacther interface ppt
Request dispacther interface pptRequest dispacther interface ppt
Request dispacther interface ppt
 
Java Spring framework, Dependency Injection, DI, IoC, Inversion of Control
Java Spring framework, Dependency Injection, DI, IoC, Inversion of ControlJava Spring framework, Dependency Injection, DI, IoC, Inversion of Control
Java Spring framework, Dependency Injection, DI, IoC, Inversion of Control
 
Servlet.ppt
Servlet.pptServlet.ppt
Servlet.ppt
 
Servlets api overview
Servlets api overviewServlets api overview
Servlets api overview
 
J2EE Introduction
J2EE IntroductionJ2EE Introduction
J2EE Introduction
 
Introduction to ASP.NET
Introduction to ASP.NETIntroduction to ASP.NET
Introduction to ASP.NET
 
Java Server Pages
Java Server PagesJava Server Pages
Java Server Pages
 
Restful web services ppt
Restful web services pptRestful web services ppt
Restful web services ppt
 
Servlets
ServletsServlets
Servlets
 
Asp.net state management
Asp.net state managementAsp.net state management
Asp.net state management
 
Java Servlets
Java ServletsJava Servlets
Java Servlets
 
Spring Framework
Spring Framework  Spring Framework
Spring Framework
 
An Introduction To Java Web Technology
An Introduction To Java Web TechnologyAn Introduction To Java Web Technology
An Introduction To Java Web Technology
 
Hibernate ORM over JDBC
Hibernate ORM over JDBCHibernate ORM over JDBC
Hibernate ORM over JDBC
 
J2EE Architecture Explained
J2EE  Architecture ExplainedJ2EE  Architecture Explained
J2EE Architecture Explained
 
Spring MVC Framework
Spring MVC FrameworkSpring MVC Framework
Spring MVC Framework
 
Chapter2 j2ee
Chapter2 j2eeChapter2 j2ee
Chapter2 j2ee
 
Java annotations
Java annotationsJava annotations
Java annotations
 

Similar to Enterprise java unit-1_chapter-2

J2 ee container & components
J2 ee container & componentsJ2 ee container & components
J2 ee container & components
Keshab Nath
 
J2EE Notes JDBC database Connectiviy and Programs related to JDBC
J2EE Notes JDBC database Connectiviy and Programs related to JDBCJ2EE Notes JDBC database Connectiviy and Programs related to JDBC
J2EE Notes JDBC database Connectiviy and Programs related to JDBC
ChaithraCSHirematt
 

Similar to Enterprise java unit-1_chapter-2 (20)

Client server architecture
Client server architectureClient server architecture
Client server architecture
 
Ra framework 0.1
Ra framework 0.1Ra framework 0.1
Ra framework 0.1
 
Introduction and Basics to web technology .pptx
Introduction and Basics to web technology .pptxIntroduction and Basics to web technology .pptx
Introduction and Basics to web technology .pptx
 
J2 ee archi
J2 ee archiJ2 ee archi
J2 ee archi
 
Over view of software artitecture
Over view of software artitectureOver view of software artitecture
Over view of software artitecture
 
Mcv design patterns
Mcv design patternsMcv design patterns
Mcv design patterns
 
Intorduction to struts
Intorduction to strutsIntorduction to struts
Intorduction to struts
 
J2 ee container & components
J2 ee container & componentsJ2 ee container & components
J2 ee container & components
 
Microservice Architecture Patterns, by Richard Langlois P. Eng.
Microservice Architecture Patterns, by Richard Langlois P. Eng.Microservice Architecture Patterns, by Richard Langlois P. Eng.
Microservice Architecture Patterns, by Richard Langlois P. Eng.
 
Data center proposal
Data center proposalData center proposal
Data center proposal
 
Odbc and data access objects
Odbc and data access objectsOdbc and data access objects
Odbc and data access objects
 
3 tier architecture
3 tier architecture3 tier architecture
3 tier architecture
 
Introduction to ejb and struts framework
Introduction to ejb and struts frameworkIntroduction to ejb and struts framework
Introduction to ejb and struts framework
 
Enterprice java
Enterprice javaEnterprice java
Enterprice java
 
Web programming and development - Introduction
Web programming and development - IntroductionWeb programming and development - Introduction
Web programming and development - Introduction
 
J2EE Notes JDBC database Connectiviy and Programs related to JDBC
J2EE Notes JDBC database Connectiviy and Programs related to JDBCJ2EE Notes JDBC database Connectiviy and Programs related to JDBC
J2EE Notes JDBC database Connectiviy and Programs related to JDBC
 
Analytics and etl based bi solutions
Analytics and etl based bi solutionsAnalytics and etl based bi solutions
Analytics and etl based bi solutions
 
WEB TECHNOLOGY Unit-3.pptx
WEB TECHNOLOGY Unit-3.pptxWEB TECHNOLOGY Unit-3.pptx
WEB TECHNOLOGY Unit-3.pptx
 
3 tier architecture
3 tier architecture3 tier architecture
3 tier architecture
 
N - Tier Applications, Enterprise Java Beans, Component technologies
N - Tier Applications, Enterprise Java Beans, Component technologiesN - Tier Applications, Enterprise Java Beans, Component technologies
N - Tier Applications, Enterprise Java Beans, Component technologies
 

More from sandeep54552

More from sandeep54552 (20)

Dijkstra Searching Algorithms Shortest.pptx
Dijkstra Searching Algorithms Shortest.pptxDijkstra Searching Algorithms Shortest.pptx
Dijkstra Searching Algorithms Shortest.pptx
 
E_R-Diagram (2).pptx
E_R-Diagram (2).pptxE_R-Diagram (2).pptx
E_R-Diagram (2).pptx
 
Dijkstra Searching Algorithms.pptx
Dijkstra Searching Algorithms.pptxDijkstra Searching Algorithms.pptx
Dijkstra Searching Algorithms.pptx
 
DFS_New.pptx
DFS_New.pptxDFS_New.pptx
DFS_New.pptx
 
Agents_AI.ppt
Agents_AI.pptAgents_AI.ppt
Agents_AI.ppt
 
YCMOU_FYBCA_DS_Unit-7.ppt
YCMOU_FYBCA_DS_Unit-7.pptYCMOU_FYBCA_DS_Unit-7.ppt
YCMOU_FYBCA_DS_Unit-7.ppt
 
Queue_Data_Structure.pptx
Queue_Data_Structure.pptxQueue_Data_Structure.pptx
Queue_Data_Structure.pptx
 
Tree_Definition.pptx
Tree_Definition.pptxTree_Definition.pptx
Tree_Definition.pptx
 
Stack_Application_Infix_Prefix.pptx
Stack_Application_Infix_Prefix.pptxStack_Application_Infix_Prefix.pptx
Stack_Application_Infix_Prefix.pptx
 
Stack_Data_Structure.pptx
Stack_Data_Structure.pptxStack_Data_Structure.pptx
Stack_Data_Structure.pptx
 
Heap_Sort1.pptx
Heap_Sort1.pptxHeap_Sort1.pptx
Heap_Sort1.pptx
 
Quick_sort1.pptx
Quick_sort1.pptxQuick_sort1.pptx
Quick_sort1.pptx
 
Link_List.pptx
Link_List.pptxLink_List.pptx
Link_List.pptx
 
Templates in c++
Templates in c++Templates in c++
Templates in c++
 
File handling in c++
File handling in c++File handling in c++
File handling in c++
 
Exception handling in c++
Exception handling in c++Exception handling in c++
Exception handling in c++
 
Inheritance in c++
Inheritance in c++ Inheritance in c++
Inheritance in c++
 
Constructor and Destructors in C++
Constructor and Destructors in C++Constructor and Destructors in C++
Constructor and Destructors in C++
 
C++ programming introduction
C++ programming introductionC++ programming introduction
C++ programming introduction
 
Hill climbing algorithm in artificial intelligence
Hill climbing algorithm in artificial intelligenceHill climbing algorithm in artificial intelligence
Hill climbing algorithm in artificial intelligence
 

Recently uploaded

RS Khurmi Machine Design Clutch and Brake Exercise Numerical Solutions
RS Khurmi Machine Design Clutch and Brake Exercise Numerical SolutionsRS Khurmi Machine Design Clutch and Brake Exercise Numerical Solutions
RS Khurmi Machine Design Clutch and Brake Exercise Numerical Solutions
Atif Razi
 
Standard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - NeometrixStandard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - Neometrix
Neometrix_Engineering_Pvt_Ltd
 
Digital Signal Processing Lecture notes n.pdf
Digital Signal Processing Lecture notes n.pdfDigital Signal Processing Lecture notes n.pdf
Digital Signal Processing Lecture notes n.pdf
AbrahamGadissa
 
ONLINE VEHICLE RENTAL SYSTEM PROJECT REPORT.pdf
ONLINE VEHICLE RENTAL SYSTEM PROJECT REPORT.pdfONLINE VEHICLE RENTAL SYSTEM PROJECT REPORT.pdf
ONLINE VEHICLE RENTAL SYSTEM PROJECT REPORT.pdf
Kamal Acharya
 

Recently uploaded (20)

Explosives Industry manufacturing process.pdf
Explosives Industry manufacturing process.pdfExplosives Industry manufacturing process.pdf
Explosives Industry manufacturing process.pdf
 
NO1 Pandit Amil Baba In Bahawalpur, Sargodha, Sialkot, Sheikhupura, Rahim Yar...
NO1 Pandit Amil Baba In Bahawalpur, Sargodha, Sialkot, Sheikhupura, Rahim Yar...NO1 Pandit Amil Baba In Bahawalpur, Sargodha, Sialkot, Sheikhupura, Rahim Yar...
NO1 Pandit Amil Baba In Bahawalpur, Sargodha, Sialkot, Sheikhupura, Rahim Yar...
 
RS Khurmi Machine Design Clutch and Brake Exercise Numerical Solutions
RS Khurmi Machine Design Clutch and Brake Exercise Numerical SolutionsRS Khurmi Machine Design Clutch and Brake Exercise Numerical Solutions
RS Khurmi Machine Design Clutch and Brake Exercise Numerical Solutions
 
2024 DevOps Pro Europe - Growing at the edge
2024 DevOps Pro Europe - Growing at the edge2024 DevOps Pro Europe - Growing at the edge
2024 DevOps Pro Europe - Growing at the edge
 
Standard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - NeometrixStandard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - Neometrix
 
Introduction to Machine Learning Unit-4 Notes for II-II Mechanical Engineering
Introduction to Machine Learning Unit-4 Notes for II-II Mechanical EngineeringIntroduction to Machine Learning Unit-4 Notes for II-II Mechanical Engineering
Introduction to Machine Learning Unit-4 Notes for II-II Mechanical Engineering
 
HYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generationHYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generation
 
KIT-601 Lecture Notes-UNIT-5.pdf Frame Works and Visualization
KIT-601 Lecture Notes-UNIT-5.pdf Frame Works and VisualizationKIT-601 Lecture Notes-UNIT-5.pdf Frame Works and Visualization
KIT-601 Lecture Notes-UNIT-5.pdf Frame Works and Visualization
 
Immunizing Image Classifiers Against Localized Adversary Attacks
Immunizing Image Classifiers Against Localized Adversary AttacksImmunizing Image Classifiers Against Localized Adversary Attacks
Immunizing Image Classifiers Against Localized Adversary Attacks
 
Top 13 Famous Civil Engineering Scientist
Top 13 Famous Civil Engineering ScientistTop 13 Famous Civil Engineering Scientist
Top 13 Famous Civil Engineering Scientist
 
Architectural Portfolio Sean Lockwood
Architectural Portfolio Sean LockwoodArchitectural Portfolio Sean Lockwood
Architectural Portfolio Sean Lockwood
 
Digital Signal Processing Lecture notes n.pdf
Digital Signal Processing Lecture notes n.pdfDigital Signal Processing Lecture notes n.pdf
Digital Signal Processing Lecture notes n.pdf
 
Halogenation process of chemical process industries
Halogenation process of chemical process industriesHalogenation process of chemical process industries
Halogenation process of chemical process industries
 
Construction method of steel structure space frame .pptx
Construction method of steel structure space frame .pptxConstruction method of steel structure space frame .pptx
Construction method of steel structure space frame .pptx
 
ENERGY STORAGE DEVICES INTRODUCTION UNIT-I
ENERGY STORAGE DEVICES  INTRODUCTION UNIT-IENERGY STORAGE DEVICES  INTRODUCTION UNIT-I
ENERGY STORAGE DEVICES INTRODUCTION UNIT-I
 
Furniture showroom management system project.pdf
Furniture showroom management system project.pdfFurniture showroom management system project.pdf
Furniture showroom management system project.pdf
 
Online resume builder management system project report.pdf
Online resume builder management system project report.pdfOnline resume builder management system project report.pdf
Online resume builder management system project report.pdf
 
ONLINE VEHICLE RENTAL SYSTEM PROJECT REPORT.pdf
ONLINE VEHICLE RENTAL SYSTEM PROJECT REPORT.pdfONLINE VEHICLE RENTAL SYSTEM PROJECT REPORT.pdf
ONLINE VEHICLE RENTAL SYSTEM PROJECT REPORT.pdf
 
Introduction to Machine Learning Unit-5 Notes for II-II Mechanical Engineering
Introduction to Machine Learning Unit-5 Notes for II-II Mechanical EngineeringIntroduction to Machine Learning Unit-5 Notes for II-II Mechanical Engineering
Introduction to Machine Learning Unit-5 Notes for II-II Mechanical Engineering
 
Quality defects in TMT Bars, Possible causes and Potential Solutions.
Quality defects in TMT Bars, Possible causes and Potential Solutions.Quality defects in TMT Bars, Possible causes and Potential Solutions.
Quality defects in TMT Bars, Possible causes and Potential Solutions.
 

Enterprise java unit-1_chapter-2

  • 1. ENTERPRISE JAVA UNIT-1 CHAPTER-2 • JAVA EE ARCHITECTURE • Java EE Server • Java EE Containers By Prof. Sandeep Vishwakarma
  • 2. Java EEArchitecture •Java EE Platform is designed to help developers create large scale,multi- tiered,scalable,reliable and secure network applications. A distributed, multi-tiered, application model can be described as an enterprise application as these applications are designed to solve the problems encountered by large enterprises.
  • 3. Following Factors must be considered Scalability: The capability of an application to adapt to any new hardware environment. Availability: The ability of an application to cater to the increased demands from clients. Extensibility: The ability of an application to incrernentally add features from time to time to improveperformance and provide better functionality to the client. Maintainability: The ability of an application to respond to bug- fixes with the minimum utilization of in terms of people, time and technology. Security: The ability of an application to maintain the integrity of data. Performance: The ability of an application to respond to a client request in the minimum time.
  • 4. Enterprise architecture is divided into following tiers • Client Tier Services run on Client Machine. • Web Tier Services run on the Java EE Server. • Business Tier Services run on the Java EE Server. • Enterprise Information System Services run on the Database Server Machine.
  • 5.
  • 6. Types of SystemArchitecture •Single Tier Architecture •Two Tier Architecture •3-Tier Architecture •Multitier Architecture
  • 7. Single TierArchitecture: Some applications are written to run on a single computer. All the services provided by the application i.e. the user interface, persistent data access and the logic that processes the data input by the user and read and displayed to the user from a data store, all exist on the same physical machine and are thus lumped together in the application.  Hence in a Single-tier architecture: • The user interface of a Web application i.e. the presentation layer • The middle ware i.e. the business rules • The data access layer
  • 9. Advantages: • Simplestand least expensive alternative. • Less equipment to purchase and maintain. Disadvantages: • This type of implementation is lower security and the lack of scalability. An architecture is scalable when it can be easily expanded or augmented to meet increasing performance needs. • Having all of the site's major components and data on a single computer behind the domain firewall leaves the site more vulnerable to malicious attacks. • Running all of the site's components on a single computer also limits expansion and optimization possibilities.
  • 10. Two TierArchitecture: In this architecture, an application is divided into two components: Client • Implements the user interface • Contains business logic Server • Used to store and access business data, captured by the user interface run on the • Client in a data store at the Server  Hence in a two-tier architecture: • The User Interface is always physically located in the user's desktop (i.e. the Client) • The database management services are always physically located on a Server
  • 12. Advantages: • Adds additional security by removing sensitive customer data from the single computer • Having the database on a separate computer improves the overall performance of the site • Allows optimizing each machine for more specific performance requirements Disadvantages: • The increased cost and complexity of the architecture
  • 13. 3-TierArchitecture:  These are classified into 3 layer. • User Services - Presentation Layer: Provides service such as the Graphical User Interface and other automation tasks that the application has to perform • Business Services - Business Layer: Implements business rules. This layer encapsulates the business logic from users such that they need not know how business logic is applied when business is upgraded, only the business layer is affected and must be upgrade the rest of the application services can remain untouched. • Data Services - Data Layer: Provides data availability and integrity. It is responsible for adding, modifying and deleting data from the data store.
  • 15. Advantage:- There are several benefits to using n-tier architecture for your software. • Secure: You can secure each of the three tiers separately using different methods. • Easy to manage: You can manage each tier separately, adding or modifying each tier without affecting the other tiers. • Scalable: If you need to add more resources, you can do it per tier, without affecting the other tiers. • Flexible: Apart from isolated scalability, you can also expand each tier in any manner that your requirements dictate. Disadvantage:- • Performance: It seems a paradox that having the several components split to allow better efficiency and performance may result in the risk of lower performance.
  • 16. MultitierArchitecture:  Client Tier: • The client tier includes the web components such as Servlets, JSP or standalone Java Desktop applications. • This tier provides dynamic interfaces to the middle tier.  Middle Tier: • This is also called as the server tier. • In the middle tier enterprise beans and web services encapsulate distributable business logic for the applications which are reusable. • The JEE application server contains the server-tier components which provides the platform for these web components for actions to be performed and data to be stored / persisted.
  • 17. MultitierArchitecture….Continue:  Enterprise data tier: • The enterprise level data is stored / persisted preferably or typically in a relational database. • In this tier, the JEE applications comprises of components, containers and services. • All the web components (Servlets, JSP) provide dynamic requests and responses from a web page. • The EJB components contain the server-side business logic for enterprise applications.
  • 18.
  • 19. Java EE Server: • A Java EE server is a server application that implements the Java EE platform APIs and provides the standard Java EE services. • Java EE servers are sometimes called application servers, because they allow you to serve application data to clients, much like web servers serve web pages to web browsers. • Java EE servers host several application component types that correspond to the tiers in a multi-tiered application. • The Java EE server provides services to these components in the form of a container
  • 20. Java EE Containers: • Java EE containers are the interface between the component and the lower-level functionality provided by the platform to support that component. • The functionality of the container is defined by the platform, and is different for each component type. • The server allows the different component types to work together to provide functionality in an enterprise application.
  • 21. • The Java EE security model lets you configure a web component or enterprise bean so that system resources are accessed only by authorized users. • The Java EE transaction model lets you specify relationships among methods that make up a single transaction so that all methods in one transaction are treated as a single unit. • JNDI lookup services provide a unified interface to multiple naming and directory services in the enterprise so that application components can access these services. • The Java EE remote connectivity model manages low- level communications between clients and enterprise beans. After an enterprise bean is created, a client invokes methods on it as if it were in the same virtual machine.  Container Services
  • 23. Container Types: There are three types of containers • The Web Container • The Application Client Container • The EJB Container
  • 24. The Web Container: • The web container is the interface between web components and the web server. • A web component can be a servlet, a Java Server Faces Facelets page, or a JSP page. • The container manages the component's lifecycle, dispatches requests to application components, and provides interfaces to context data, such as information about the current request.
  • 25. TheApplication Client Container: • The application client container is the interface between Java EE application clients, which are special Java SE applications that use Java EE server components, and the Java EE server. • The application client container runs on the client machine, and is the gateway between the client application and the Java EE server components that the client uses.
  • 26. The EJB Container: • The EJB container is the interface between enterprise beans, which provide the business logic in a Java EE application, and the Java EE server. • The EJB container runs on the Java EE server and manages the execution of an application's enterprise beans