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.
Enterprise java unit-1_chapter-2
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.
Enterprise java unit-1_chapter-2
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
Ad

More Related Content

What's hot (20)

Session bean
Session beanSession bean
Session bean
sandeep54552
 
Introduction to EJB
Introduction to EJBIntroduction to EJB
Introduction to EJB
Return on Intelligence
 
Jsp
JspJsp
Jsp
Pooja Verma
 
Jdbc ppt
Jdbc pptJdbc ppt
Jdbc ppt
Vikas Jagtap
 
Comparing Native Java REST API Frameworks - Seattle JUG 2022
Comparing Native Java REST API Frameworks - Seattle JUG 2022Comparing Native Java REST API Frameworks - Seattle JUG 2022
Comparing Native Java REST API Frameworks - Seattle JUG 2022
Matt Raible
 
Jdbc ppt
Jdbc pptJdbc ppt
Jdbc ppt
sandeep54552
 
Servlets
ServletsServlets
Servlets
ZainabNoorGul
 
Ajax presentation
Ajax presentationAjax presentation
Ajax presentation
Bharat_Kumawat
 
Introduction to Java Programming Language
Introduction to Java Programming LanguageIntroduction to Java Programming Language
Introduction to Java Programming Language
jaimefrozr
 
Spring MVC Framework
Spring MVC FrameworkSpring MVC Framework
Spring MVC Framework
Hùng Nguyễn Huy
 
Introduction to Spring Framework
Introduction to Spring FrameworkIntroduction to Spring Framework
Introduction to Spring Framework
Serhat Can
 
Command Design Pattern
Command Design PatternCommand Design Pattern
Command Design Pattern
Shahriar Hyder
 
Apache tomcat
Apache tomcatApache tomcat
Apache tomcat
Shashwat Shriparv
 
Java Spring Framework
Java Spring FrameworkJava Spring Framework
Java Spring Framework
Mehul Jariwala
 
Spring Core
Spring CoreSpring Core
Spring Core
Pushan Bhattacharya
 
Jsp ppt
Jsp pptJsp ppt
Jsp ppt
Vikas Jagtap
 
Spring Framework - AOP
Spring Framework - AOPSpring Framework - AOP
Spring Framework - AOP
Dzmitry Naskou
 
Chapter 3 servlet & jsp
Chapter 3 servlet & jspChapter 3 servlet & jsp
Chapter 3 servlet & jsp
Jafar Nesargi
 
Spring Framework
Spring FrameworkSpring Framework
Spring Framework
NexThoughts Technologies
 
Web container and Apache Tomcat
Web container and Apache TomcatWeb container and Apache Tomcat
Web container and Apache Tomcat
Auwal Amshi
 

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

Client server architecture
Client server architectureClient server architecture
Client server architecture
RituBhargava7
 
Enrterprise Java-Unit 1 (All chapters) for TYIT PPTx
Enrterprise Java-Unit 1 (All chapters) for TYIT PPTxEnrterprise Java-Unit 1 (All chapters) for TYIT PPTx
Enrterprise Java-Unit 1 (All chapters) for TYIT PPTx
dcruzsophia24
 
Enterprise Java TYIT Sem 5 Unit 1 Chapter 1 and 2 PPT
Enterprise Java TYIT Sem 5 Unit 1 Chapter 1 and 2 PPTEnterprise Java TYIT Sem 5 Unit 1 Chapter 1 and 2 PPT
Enterprise Java TYIT Sem 5 Unit 1 Chapter 1 and 2 PPT
dcruzsophia24
 
Ra framework 0.1
Ra framework 0.1Ra framework 0.1
Ra framework 0.1
bibhudattatripathy
 
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
LEENASAHU42
 
J2 ee archi
J2 ee archiJ2 ee archi
J2 ee archi
saurabhshertukde
 
Over view of software artitecture
Over view of software artitectureOver view of software artitecture
Over view of software artitecture
ABDEL RAHMAN KARIM
 
Mcv design patterns
Mcv design patternsMcv design patterns
Mcv design patterns
Rob Paok
 
Intorduction to struts
Intorduction to strutsIntorduction to struts
Intorduction to struts
Anup72
 
J2 ee container & components
J2 ee container & componentsJ2 ee container & components
J2 ee container & components
Keshab Nath
 
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.
Richard Langlois P. Eng.
 
Data center proposal
Data center proposalData center proposal
Data center proposal
Muhammad Ahad
 
Odbc and data access objects
Odbc and data access objectsOdbc and data access objects
Odbc and data access objects
Sangeetha Sg
 
3 tier architecture
3 tier architecture3 tier architecture
3 tier architecture
tahir khan
 
Introduction to ejb and struts framework
Introduction to ejb and struts frameworkIntroduction to ejb and struts framework
Introduction to ejb and struts framework
s4al_com
 
Enterprice java
Enterprice javaEnterprice java
Enterprice java
GowriLatha1
 
Web programming and development - Introduction
Web programming and development - IntroductionWeb programming and development - Introduction
Web programming and development - Introduction
Joel Briza
 
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
 
Analytics and etl based bi solutions
Analytics and etl based bi solutionsAnalytics and etl based bi solutions
Analytics and etl based bi solutions
Azilen Technologies Pvt. Ltd.
 
WEB TECHNOLOGY Unit-3.pptx
WEB TECHNOLOGY Unit-3.pptxWEB TECHNOLOGY Unit-3.pptx
WEB TECHNOLOGY Unit-3.pptx
karthiksmart21
 
Client server architecture
Client server architectureClient server architecture
Client server architecture
RituBhargava7
 
Enrterprise Java-Unit 1 (All chapters) for TYIT PPTx
Enrterprise Java-Unit 1 (All chapters) for TYIT PPTxEnrterprise Java-Unit 1 (All chapters) for TYIT PPTx
Enrterprise Java-Unit 1 (All chapters) for TYIT PPTx
dcruzsophia24
 
Enterprise Java TYIT Sem 5 Unit 1 Chapter 1 and 2 PPT
Enterprise Java TYIT Sem 5 Unit 1 Chapter 1 and 2 PPTEnterprise Java TYIT Sem 5 Unit 1 Chapter 1 and 2 PPT
Enterprise Java TYIT Sem 5 Unit 1 Chapter 1 and 2 PPT
dcruzsophia24
 
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
LEENASAHU42
 
Over view of software artitecture
Over view of software artitectureOver view of software artitecture
Over view of software artitecture
ABDEL RAHMAN KARIM
 
Mcv design patterns
Mcv design patternsMcv design patterns
Mcv design patterns
Rob Paok
 
Intorduction to struts
Intorduction to strutsIntorduction to struts
Intorduction to struts
Anup72
 
J2 ee container & components
J2 ee container & componentsJ2 ee container & components
J2 ee container & components
Keshab Nath
 
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.
Richard Langlois P. Eng.
 
Data center proposal
Data center proposalData center proposal
Data center proposal
Muhammad Ahad
 
Odbc and data access objects
Odbc and data access objectsOdbc and data access objects
Odbc and data access objects
Sangeetha Sg
 
3 tier architecture
3 tier architecture3 tier architecture
3 tier architecture
tahir khan
 
Introduction to ejb and struts framework
Introduction to ejb and struts frameworkIntroduction to ejb and struts framework
Introduction to ejb and struts framework
s4al_com
 
Web programming and development - Introduction
Web programming and development - IntroductionWeb programming and development - Introduction
Web programming and development - Introduction
Joel Briza
 
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
 
WEB TECHNOLOGY Unit-3.pptx
WEB TECHNOLOGY Unit-3.pptxWEB TECHNOLOGY Unit-3.pptx
WEB TECHNOLOGY Unit-3.pptx
karthiksmart21
 
Ad

More from sandeep54552 (20)

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

Recently uploaded (20)

Structural Response of Reinforced Self-Compacting Concrete Deep Beam Using Fi...
Structural Response of Reinforced Self-Compacting Concrete Deep Beam Using Fi...Structural Response of Reinforced Self-Compacting Concrete Deep Beam Using Fi...
Structural Response of Reinforced Self-Compacting Concrete Deep Beam Using Fi...
Journal of Soft Computing in Civil Engineering
 
15th International Conference on Computer Science, Engineering and Applicatio...
15th International Conference on Computer Science, Engineering and Applicatio...15th International Conference on Computer Science, Engineering and Applicatio...
15th International Conference on Computer Science, Engineering and Applicatio...
IJCSES Journal
 
theory-slides-for react for beginners.pptx
theory-slides-for react for beginners.pptxtheory-slides-for react for beginners.pptx
theory-slides-for react for beginners.pptx
sanchezvanessa7896
 
MAQUINARIA MINAS CEMA 6th Edition (1).pdf
MAQUINARIA MINAS CEMA 6th Edition (1).pdfMAQUINARIA MINAS CEMA 6th Edition (1).pdf
MAQUINARIA MINAS CEMA 6th Edition (1).pdf
ssuser562df4
 
Metal alkyne complexes.pptx in chemistry
Metal alkyne complexes.pptx in chemistryMetal alkyne complexes.pptx in chemistry
Metal alkyne complexes.pptx in chemistry
mee23nu
 
Lidar for Autonomous Driving, LiDAR Mapping for Driverless Cars.pptx
Lidar for Autonomous Driving, LiDAR Mapping for Driverless Cars.pptxLidar for Autonomous Driving, LiDAR Mapping for Driverless Cars.pptx
Lidar for Autonomous Driving, LiDAR Mapping for Driverless Cars.pptx
RishavKumar530754
 
Oil-gas_Unconventional oil and gass_reseviours.pdf
Oil-gas_Unconventional oil and gass_reseviours.pdfOil-gas_Unconventional oil and gass_reseviours.pdf
Oil-gas_Unconventional oil and gass_reseviours.pdf
M7md3li2
 
DT REPORT by Tech titan GROUP to introduce the subject design Thinking
DT REPORT by Tech titan GROUP to introduce the subject design ThinkingDT REPORT by Tech titan GROUP to introduce the subject design Thinking
DT REPORT by Tech titan GROUP to introduce the subject design Thinking
DhruvChotaliya2
 
QA/QC Manager (Quality management Expert)
QA/QC Manager (Quality management Expert)QA/QC Manager (Quality management Expert)
QA/QC Manager (Quality management Expert)
rccbatchplant
 
"Feed Water Heaters in Thermal Power Plants: Types, Working, and Efficiency G...
"Feed Water Heaters in Thermal Power Plants: Types, Working, and Efficiency G..."Feed Water Heaters in Thermal Power Plants: Types, Working, and Efficiency G...
"Feed Water Heaters in Thermal Power Plants: Types, Working, and Efficiency G...
Infopitaara
 
"Boiler Feed Pump (BFP): Working, Applications, Advantages, and Limitations E...
"Boiler Feed Pump (BFP): Working, Applications, Advantages, and Limitations E..."Boiler Feed Pump (BFP): Working, Applications, Advantages, and Limitations E...
"Boiler Feed Pump (BFP): Working, Applications, Advantages, and Limitations E...
Infopitaara
 
Artificial Intelligence (AI) basics.pptx
Artificial Intelligence (AI) basics.pptxArtificial Intelligence (AI) basics.pptx
Artificial Intelligence (AI) basics.pptx
aditichinar
 
Degree_of_Automation.pdf for Instrumentation and industrial specialist
Degree_of_Automation.pdf for  Instrumentation  and industrial specialistDegree_of_Automation.pdf for  Instrumentation  and industrial specialist
Degree_of_Automation.pdf for Instrumentation and industrial specialist
shreyabhosale19
 
Fort night presentation new0903 pdf.pdf.
Fort night presentation new0903 pdf.pdf.Fort night presentation new0903 pdf.pdf.
Fort night presentation new0903 pdf.pdf.
anuragmk56
 
new ppt artificial intelligence historyyy
new ppt artificial intelligence historyyynew ppt artificial intelligence historyyy
new ppt artificial intelligence historyyy
PianoPianist
 
Compiler Design_Lexical Analysis phase.pptx
Compiler Design_Lexical Analysis phase.pptxCompiler Design_Lexical Analysis phase.pptx
Compiler Design_Lexical Analysis phase.pptx
RushaliDeshmukh2
 
RICS Membership-(The Royal Institution of Chartered Surveyors).pdf
RICS Membership-(The Royal Institution of Chartered Surveyors).pdfRICS Membership-(The Royal Institution of Chartered Surveyors).pdf
RICS Membership-(The Royal Institution of Chartered Surveyors).pdf
MohamedAbdelkader115
 
Raish Khanji GTU 8th sem Internship Report.pdf
Raish Khanji GTU 8th sem Internship Report.pdfRaish Khanji GTU 8th sem Internship Report.pdf
Raish Khanji GTU 8th sem Internship Report.pdf
RaishKhanji
 
Mathematical foundation machine learning.pdf
Mathematical foundation machine learning.pdfMathematical foundation machine learning.pdf
Mathematical foundation machine learning.pdf
TalhaShahid49
 
Machine learning project on employee attrition detection using (2).pptx
Machine learning project on employee attrition detection using (2).pptxMachine learning project on employee attrition detection using (2).pptx
Machine learning project on employee attrition detection using (2).pptx
rajeswari89780
 
15th International Conference on Computer Science, Engineering and Applicatio...
15th International Conference on Computer Science, Engineering and Applicatio...15th International Conference on Computer Science, Engineering and Applicatio...
15th International Conference on Computer Science, Engineering and Applicatio...
IJCSES Journal
 
theory-slides-for react for beginners.pptx
theory-slides-for react for beginners.pptxtheory-slides-for react for beginners.pptx
theory-slides-for react for beginners.pptx
sanchezvanessa7896
 
MAQUINARIA MINAS CEMA 6th Edition (1).pdf
MAQUINARIA MINAS CEMA 6th Edition (1).pdfMAQUINARIA MINAS CEMA 6th Edition (1).pdf
MAQUINARIA MINAS CEMA 6th Edition (1).pdf
ssuser562df4
 
Metal alkyne complexes.pptx in chemistry
Metal alkyne complexes.pptx in chemistryMetal alkyne complexes.pptx in chemistry
Metal alkyne complexes.pptx in chemistry
mee23nu
 
Lidar for Autonomous Driving, LiDAR Mapping for Driverless Cars.pptx
Lidar for Autonomous Driving, LiDAR Mapping for Driverless Cars.pptxLidar for Autonomous Driving, LiDAR Mapping for Driverless Cars.pptx
Lidar for Autonomous Driving, LiDAR Mapping for Driverless Cars.pptx
RishavKumar530754
 
Oil-gas_Unconventional oil and gass_reseviours.pdf
Oil-gas_Unconventional oil and gass_reseviours.pdfOil-gas_Unconventional oil and gass_reseviours.pdf
Oil-gas_Unconventional oil and gass_reseviours.pdf
M7md3li2
 
DT REPORT by Tech titan GROUP to introduce the subject design Thinking
DT REPORT by Tech titan GROUP to introduce the subject design ThinkingDT REPORT by Tech titan GROUP to introduce the subject design Thinking
DT REPORT by Tech titan GROUP to introduce the subject design Thinking
DhruvChotaliya2
 
QA/QC Manager (Quality management Expert)
QA/QC Manager (Quality management Expert)QA/QC Manager (Quality management Expert)
QA/QC Manager (Quality management Expert)
rccbatchplant
 
"Feed Water Heaters in Thermal Power Plants: Types, Working, and Efficiency G...
"Feed Water Heaters in Thermal Power Plants: Types, Working, and Efficiency G..."Feed Water Heaters in Thermal Power Plants: Types, Working, and Efficiency G...
"Feed Water Heaters in Thermal Power Plants: Types, Working, and Efficiency G...
Infopitaara
 
"Boiler Feed Pump (BFP): Working, Applications, Advantages, and Limitations E...
"Boiler Feed Pump (BFP): Working, Applications, Advantages, and Limitations E..."Boiler Feed Pump (BFP): Working, Applications, Advantages, and Limitations E...
"Boiler Feed Pump (BFP): Working, Applications, Advantages, and Limitations E...
Infopitaara
 
Artificial Intelligence (AI) basics.pptx
Artificial Intelligence (AI) basics.pptxArtificial Intelligence (AI) basics.pptx
Artificial Intelligence (AI) basics.pptx
aditichinar
 
Degree_of_Automation.pdf for Instrumentation and industrial specialist
Degree_of_Automation.pdf for  Instrumentation  and industrial specialistDegree_of_Automation.pdf for  Instrumentation  and industrial specialist
Degree_of_Automation.pdf for Instrumentation and industrial specialist
shreyabhosale19
 
Fort night presentation new0903 pdf.pdf.
Fort night presentation new0903 pdf.pdf.Fort night presentation new0903 pdf.pdf.
Fort night presentation new0903 pdf.pdf.
anuragmk56
 
new ppt artificial intelligence historyyy
new ppt artificial intelligence historyyynew ppt artificial intelligence historyyy
new ppt artificial intelligence historyyy
PianoPianist
 
Compiler Design_Lexical Analysis phase.pptx
Compiler Design_Lexical Analysis phase.pptxCompiler Design_Lexical Analysis phase.pptx
Compiler Design_Lexical Analysis phase.pptx
RushaliDeshmukh2
 
RICS Membership-(The Royal Institution of Chartered Surveyors).pdf
RICS Membership-(The Royal Institution of Chartered Surveyors).pdfRICS Membership-(The Royal Institution of Chartered Surveyors).pdf
RICS Membership-(The Royal Institution of Chartered Surveyors).pdf
MohamedAbdelkader115
 
Raish Khanji GTU 8th sem Internship Report.pdf
Raish Khanji GTU 8th sem Internship Report.pdfRaish Khanji GTU 8th sem Internship Report.pdf
Raish Khanji GTU 8th sem Internship Report.pdf
RaishKhanji
 
Mathematical foundation machine learning.pdf
Mathematical foundation machine learning.pdfMathematical foundation machine learning.pdf
Mathematical foundation machine learning.pdf
TalhaShahid49
 
Machine learning project on employee attrition detection using (2).pptx
Machine learning project on employee attrition detection using (2).pptxMachine learning project on employee attrition detection using (2).pptx
Machine learning project on employee attrition detection using (2).pptx
rajeswari89780
 

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.
  • 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.
  • 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