SlideShare a Scribd company logo
1 of 37
 Also known as Core Java, this is the most basic and standard
version of Java. It’s the purest form of Java, a basic
foundation for all other editions.
 It consists of a wide variety of general purpose API’s (like
java.lang, java.util) as well as many special purpose APIs.
 J2SE is mainly used to create applications for Desktop
environment.
 Using the Java 2 Platform, Standard Edition (J2SE) as a basis,
Java 2 Platform, Enterprise Edition (J2EE) builds on top of this.
 J2EE is used to provide the types of services that are
necessary to build large scale, distributed, component based,
multi-tier applications.
 J2EE is a collection of APIs that can be used to build such
systems.
 J2EE is also a standard for building and deploying enterprise
applications, held together by the specifications of the APIs
that it defines and the services that J2EE provides.
 The Enterprise version of Java has a much larger usage of
Java, like development of web services, networking, server
side scripting and other various web based applications.
 J2EE is a community driven edition, i.e. there is a lot of
continuous contributions from industry experts, Java
developers and other open source organizations.
 Monoliths
 N-tier architecture (tightly coupled)
 Micro services (decoupled)
 Event-driven architecture
 Service-oriented architecture (loosely
coupled).
 It is a single application stack that contains all
functionality within that 1 application.
 It is tightly coupled.
 A single change to the application code requires
the whole application to be re-released.
 Microservices are both an architecture and an
approach to writing software.
 With microservices, apps are broken down into their
smallest components, independent from each other.
Each of these components, or processes, is a
microservice.
 Microservices are distributed and loosely coupled,
so they don’t impact one another.
 The goal of using a microservices architecture is to
deliver quality software faster.
 This leads to more developers working on their
individual services at the same time, instead of
updating the whole application, resulting in less
time spent in development and the ability to
release new features more often.
 An event is any significant occurrence or change in state for
system hardware or software. The source of an event can be
from internal or external inputs.
 Event-driven architecture enables minimal coupling, which
makes it a good option for modern, distributed application
architectures.
 Many programs spend most of their time waiting for
something to happen. This is especially true for computers
that work directly with humans, but it’s also common in areas
like networks. Sometimes there’s data that needs processing,
and other times there isn’t.
 Programming a web page with JavaScript involves
writing the small modules that react to events like
mouse clicks or keystrokes.
 The browser itself orchestrates all of the input and
makes sure that only the right code sees the right
events.
 Many different types of events are common in the
browser, but the modules interact only with the
events that concern them.
 A layered or N-tier architecture is a traditional
architecture often used to build on-premise and
enterprise apps, and is frequently associated with
legacy apps.
 In a layered architecture, there are several layers or
tiers, often 3, but there can be more, that make up
the application, each with their own responsibility.
 Layers help to manage dependencies and perform logical
functions.
 In a layered architecture, the layers are arranged horizontally, so
they are only able to call into a layer below.
 The code is arranged so the data enters the top layer and works
its way down each layer until it reaches the bottom, which is
usually a database.
 Along the way, each layer has a specific task, like checking the
data for consistency or reformatting the values to keep them
consistent. It’s common for different programmers to work
independently on different layers.
 Many IT departments used two-tier, client/server
architecture model.
 This two-tier architecture depends heavily on keeping
client software updated, which is both difficult to
maintain and costly to deploy in a large corporation
that has several intranets and workforce that consist of
field representatives and other remote users
 The two-tier, client/server architecture had to be
abandoned and a new , multi-tier architecture had to
be built in its place.
 Distributed systems divide the work amongst several
independent modules.
 A distributed system consists of multiple autonomous
computers that communicate through a computer
network. The computers interact with each other in
order to achieve a common goal. A computer program
that runs in a distributed system is called a distributed
program.
 Java Enterprise System is well-suited for multi-tiered
architecture design, where services are placed in tiers
according to the functionality they provide.
 Each service is logically independent and can be accessed by
services in either the same tier or a different tier.

Client tier

Contains client applications that present information to end
users. For Java Enterprise System, these applications are typically
mail clients, web browsers, or mobile access clients.

Presentation tier

Provides services that display data to end users, allowing users to
process and manipulate the presentation. For example, a web
mail client or Portal Server component allows users to modify the
presentation of information they receive.

Business service tier

Provides back-end services that typically retrieve data from the
data tier to provide to other services within the presentation or
business service tiers or directly to clients in the client tier. For
example, Access Manager provides identity services to other Java
Enterprise System components.
 Data tier
 Provides database services accessed by services within the
presentation tier or business service tier. For example, Directory
Server provides LDAP directory access to other services.
 The client tier consists of programs or
applications interact with the user.
 Client tier prompts the user inputs into user
requests then forwarded to the J2EE server
then processed result returned back to the
client.
 Clients can be classified as a
1) Web Client.
2) Application Client.
 Web client consists of dynamic web pages of
various mark-up languages that are generated by
web components running in web tier.
 Web clients are also called as thin clients that
usually do not perform things like query
database, execute business rules.
 Applets: Web pages received from web tier
embedded an Applet these run on a web
browser.
 Web components are APIs for creating a web
client program.
 The application client runs on the client
machine and handles the tasks that give
richer user interfaces.
 The application client runs on the client
machine and handles the tasks that give
richer user interfaces.
 Application clients can directly access EJBs
running in the business tier using an HTTP
connection.
 Web Tier /Web Component
 Web components can be servlets or JSP
pages.
 Servlets can dynamically process the request
and generate the responses.
 servlets are dynamic pages to some extent
but JSP pages are static in nature.
 Web tier might include EJB components for
processing user inputs and sends the input to
Enterprise bean running in the business tier.
 Enterprise components handle usually
business code that is logic to solve particular
business domains such as banking or finance
are handled by enterprise bean running in the
business tier.
 Enterprise Container receives data from client
processes if necessary, sends it to the
enterprise information system for storage.
 Enterprise bean also retrieves data from
storage, processes it and sends it back to the
client.
 Session Bean: Session bean is used for a
conversation with the client. Once the client
finishes the execution session bean destroys.
 Entity Bean: Holds the particular data stored in a
database. Once the server shutdowns or client
finishes its execution entity bean data is
preserved.
 Message Driven Bean: Message bean combines
the properties of Session Bean and JMS. Which
benefits the business component to receive
messages asynchronously.
 This tier consists of database servers,
enterprise resource planning systems and
other data sources.
 Resources are typically located on a separate
machine than the J2EE Server and accessed by
components on the business tier.
 Application Client Container
 The container includes a set of classes,
libraries, other files that are required to
execute client programs in their own JVM.
 Manages the execution of client components.
 It also provides services that enable java
client program to execute.
 This container is specific to the EJB
container.
 Web Container is a component of the web
server that interacts with Java servlets.
 A web container is responsible for managing
the servlets lifecycle and mapping URLs.
 Web container handles a request from
Servlets and JSP files and other files that
includes server-side code.
 This provides a runtime environment for
additional web components security,
transaction, deployment, etc.
 Enterprise Java bean container consists of
server components that contain business
logic.
 Provides local and remote access to
enterprise beans.
 EJB container is responsible for creating
enterprise bean, binding enterprise bean to
the naming services.
 The container where the client’s Applet
programs will run may be in a web browser or
other application programs that support
applet programming.
 These are normal web pages downloaded
from the web servers and executes on the
client browser.
 Primary technologies
- Servlets
- JavaServer Pages (JSP)
- Enterprise JavaBeans (EJB)
 Standard services & supporting technologies
- Java database connectivity(JDBC) data access API
- Remote Method Invocations (RMI)
- Extensible Markup Languages(XML)
- JavaIDL
- JavaMail
 Servlet Technology is used to create web
applications.
 Servlet technology uses Java language to
create web applications.
 Web applications are helper applications that
resides at web server and build dynamic web
pages.
 A dynamic page could be anything like a page
that randomly chooses picture to display or
even a page that displays the current time.
 As Servlet Technology uses Java, web
applications made using Servlet
are Secured, Scalable and Robust.
 JSP technology is used to create dynamic web
applications.
 JSP pages are easier to maintain then
a Servlet.
 JSP pages are opposite of Servlets as a servlet
adds HTML code inside Java code, while JSP
adds Java code inside HTML using JSP tags.
Everything a Servlet can do, a JSP page can
also do it.
 Using JSP, one can easily separate
Presentation and Business logic.
JSP pages are converted into Servlet by the Web
Container. The Container translates a JSP page into
servlet class source(.java) file and then compiles into a
Java Servlet class.
 JSP provides an easier way to code dynamic
web pages.
 JSP does not require additional files like, java
class files, web.xml etc
 Any change in the JSP code is handled by Web
Container(Application server like tomcat), and
doesn't require re-compilation.
 EJB (Enterprise Java Bean) is used to develop
scalable, robust and secured enterprise
applications in java.
 Middleware services such as security,
transaction management etc. are provided
by EJB Container to all EJB applications.
 To run EJB application, you need
an application server (EJB Container) such as
Jboss, Glassfish, Weblogic, Websphere etc.
 It performs:
1. life cycle management
2. security
3. transaction management
4. object pooling.
Note: EJB application is deployed on the server,
so it is called server side component also.

More Related Content

Similar to J2EE Notes JDBC database Connectiviy and Programs related to JDBC

SOA Fundamentals
SOA  FundamentalsSOA  Fundamentals
SOA Fundamentalsabhi1112
 
Web Application Development-Ultimate Guide To Web Application Architecture
Web Application Development-Ultimate Guide To Web Application ArchitectureWeb Application Development-Ultimate Guide To Web Application Architecture
Web Application Development-Ultimate Guide To Web Application ArchitectureVersatile Mobitech
 
Intorduction to struts
Intorduction to strutsIntorduction to struts
Intorduction to strutsAnup72
 
Project report for final year project
Project report for final year projectProject report for final year project
Project report for final year projectsuneel singh
 
Fundamentals of Web Development For Non-Developers
Fundamentals of Web Development For Non-DevelopersFundamentals of Web Development For Non-Developers
Fundamentals of Web Development For Non-DevelopersLemi Orhan Ergin
 
Components of a Generic Web Application Architecture
Components of  a Generic Web Application ArchitectureComponents of  a Generic Web Application Architecture
Components of a Generic Web Application ArchitectureMadonnaLamin1
 
Internet applications unit1
Internet applications unit1Internet applications unit1
Internet applications unit1MSc CST
 
College information management system.doc
College information management system.docCollege information management system.doc
College information management system.docKamal Acharya
 
Latest Web development technologies 2021
 Latest Web development technologies 2021 Latest Web development technologies 2021
Latest Web development technologies 2021SWATHYSMOHAN
 
Automatic answer checker
Automatic answer checkerAutomatic answer checker
Automatic answer checkerYesu Raj
 
TOLL MANAGEMENT SYSTEM
TOLL MANAGEMENT SYSTEMTOLL MANAGEMENT SYSTEM
TOLL MANAGEMENT SYSTEMvishnuRajan20
 
Toll management system (1) (1)
Toll management system (1) (1)Toll management system (1) (1)
Toll management system (1) (1)vishnuRajan20
 
Online test management system
Online test management systemOnline test management system
Online test management systemPrateek Agarwak
 

Similar to J2EE Notes JDBC database Connectiviy and Programs related to JDBC (20)

SOA Fundamentals
SOA  FundamentalsSOA  Fundamentals
SOA Fundamentals
 
Web Application Development-Ultimate Guide To Web Application Architecture
Web Application Development-Ultimate Guide To Web Application ArchitectureWeb Application Development-Ultimate Guide To Web Application Architecture
Web Application Development-Ultimate Guide To Web Application Architecture
 
Intorduction to struts
Intorduction to strutsIntorduction to struts
Intorduction to struts
 
Enterprice java
Enterprice javaEnterprice java
Enterprice java
 
GMR PROJECT PPT
GMR PROJECT PPTGMR PROJECT PPT
GMR PROJECT PPT
 
Project report for final year project
Project report for final year projectProject report for final year project
Project report for final year project
 
Java EE 7 introduction
Java EE 7  introductionJava EE 7  introduction
Java EE 7 introduction
 
Java ee introduction
Java ee introductionJava ee introduction
Java ee introduction
 
E farming
E farmingE farming
E farming
 
Fundamentals of Web Development For Non-Developers
Fundamentals of Web Development For Non-DevelopersFundamentals of Web Development For Non-Developers
Fundamentals of Web Development For Non-Developers
 
Design patterns
Design patternsDesign patterns
Design patterns
 
Chapter2 j2ee
Chapter2 j2eeChapter2 j2ee
Chapter2 j2ee
 
Components of a Generic Web Application Architecture
Components of  a Generic Web Application ArchitectureComponents of  a Generic Web Application Architecture
Components of a Generic Web Application Architecture
 
Internet applications unit1
Internet applications unit1Internet applications unit1
Internet applications unit1
 
College information management system.doc
College information management system.docCollege information management system.doc
College information management system.doc
 
Latest Web development technologies 2021
 Latest Web development technologies 2021 Latest Web development technologies 2021
Latest Web development technologies 2021
 
Automatic answer checker
Automatic answer checkerAutomatic answer checker
Automatic answer checker
 
TOLL MANAGEMENT SYSTEM
TOLL MANAGEMENT SYSTEMTOLL MANAGEMENT SYSTEM
TOLL MANAGEMENT SYSTEM
 
Toll management system (1) (1)
Toll management system (1) (1)Toll management system (1) (1)
Toll management system (1) (1)
 
Online test management system
Online test management systemOnline test management system
Online test management system
 

Recently uploaded

Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceRoles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceSamikshaHamane
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxmanuelaromero2013
 
Meghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media ComponentMeghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media ComponentInMediaRes1
 
Pharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfPharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfMahmoud M. Sallam
 
Hierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementHierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementmkooblal
 
MARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized GroupMARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized GroupJonathanParaisoCruz
 
Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Celine George
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for BeginnersSabitha Banu
 
Painted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaPainted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaVirag Sontakke
 
Historical philosophical, theoretical, and legal foundations of special and i...
Historical philosophical, theoretical, and legal foundations of special and i...Historical philosophical, theoretical, and legal foundations of special and i...
Historical philosophical, theoretical, and legal foundations of special and i...jaredbarbolino94
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfSumit Tiwari
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Celine George
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon AUnboundStockton
 
Final demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxFinal demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxAvyJaneVismanos
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatYousafMalik24
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentInMediaRes1
 

Recently uploaded (20)

Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceRoles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in Pharmacovigilance
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptx
 
Meghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media ComponentMeghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media Component
 
Pharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfPharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdf
 
Hierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementHierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of management
 
9953330565 Low Rate Call Girls In Rohini Delhi NCR
9953330565 Low Rate Call Girls In Rohini  Delhi NCR9953330565 Low Rate Call Girls In Rohini  Delhi NCR
9953330565 Low Rate Call Girls In Rohini Delhi NCR
 
ESSENTIAL of (CS/IT/IS) class 06 (database)
ESSENTIAL of (CS/IT/IS) class 06 (database)ESSENTIAL of (CS/IT/IS) class 06 (database)
ESSENTIAL of (CS/IT/IS) class 06 (database)
 
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
 
MARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized GroupMARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized Group
 
Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for Beginners
 
Painted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaPainted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of India
 
Historical philosophical, theoretical, and legal foundations of special and i...
Historical philosophical, theoretical, and legal foundations of special and i...Historical philosophical, theoretical, and legal foundations of special and i...
Historical philosophical, theoretical, and legal foundations of special and i...
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon A
 
Final demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxFinal demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptx
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice great
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media Component
 

J2EE Notes JDBC database Connectiviy and Programs related to JDBC

  • 1.
  • 2.  Also known as Core Java, this is the most basic and standard version of Java. It’s the purest form of Java, a basic foundation for all other editions.  It consists of a wide variety of general purpose API’s (like java.lang, java.util) as well as many special purpose APIs.  J2SE is mainly used to create applications for Desktop environment.
  • 3.  Using the Java 2 Platform, Standard Edition (J2SE) as a basis, Java 2 Platform, Enterprise Edition (J2EE) builds on top of this.  J2EE is used to provide the types of services that are necessary to build large scale, distributed, component based, multi-tier applications.  J2EE is a collection of APIs that can be used to build such systems.  J2EE is also a standard for building and deploying enterprise applications, held together by the specifications of the APIs that it defines and the services that J2EE provides.
  • 4.  The Enterprise version of Java has a much larger usage of Java, like development of web services, networking, server side scripting and other various web based applications.  J2EE is a community driven edition, i.e. there is a lot of continuous contributions from industry experts, Java developers and other open source organizations.
  • 5.  Monoliths  N-tier architecture (tightly coupled)  Micro services (decoupled)  Event-driven architecture  Service-oriented architecture (loosely coupled).
  • 6.  It is a single application stack that contains all functionality within that 1 application.  It is tightly coupled.  A single change to the application code requires the whole application to be re-released.
  • 7.  Microservices are both an architecture and an approach to writing software.  With microservices, apps are broken down into their smallest components, independent from each other. Each of these components, or processes, is a microservice.  Microservices are distributed and loosely coupled, so they don’t impact one another.
  • 8.  The goal of using a microservices architecture is to deliver quality software faster.  This leads to more developers working on their individual services at the same time, instead of updating the whole application, resulting in less time spent in development and the ability to release new features more often.
  • 9.  An event is any significant occurrence or change in state for system hardware or software. The source of an event can be from internal or external inputs.  Event-driven architecture enables minimal coupling, which makes it a good option for modern, distributed application architectures.  Many programs spend most of their time waiting for something to happen. This is especially true for computers that work directly with humans, but it’s also common in areas like networks. Sometimes there’s data that needs processing, and other times there isn’t.
  • 10.  Programming a web page with JavaScript involves writing the small modules that react to events like mouse clicks or keystrokes.  The browser itself orchestrates all of the input and makes sure that only the right code sees the right events.  Many different types of events are common in the browser, but the modules interact only with the events that concern them.
  • 11.  A layered or N-tier architecture is a traditional architecture often used to build on-premise and enterprise apps, and is frequently associated with legacy apps.  In a layered architecture, there are several layers or tiers, often 3, but there can be more, that make up the application, each with their own responsibility.
  • 12.  Layers help to manage dependencies and perform logical functions.  In a layered architecture, the layers are arranged horizontally, so they are only able to call into a layer below.  The code is arranged so the data enters the top layer and works its way down each layer until it reaches the bottom, which is usually a database.  Along the way, each layer has a specific task, like checking the data for consistency or reformatting the values to keep them consistent. It’s common for different programmers to work independently on different layers.
  • 13.  Many IT departments used two-tier, client/server architecture model.  This two-tier architecture depends heavily on keeping client software updated, which is both difficult to maintain and costly to deploy in a large corporation that has several intranets and workforce that consist of field representatives and other remote users  The two-tier, client/server architecture had to be abandoned and a new , multi-tier architecture had to be built in its place.
  • 14.  Distributed systems divide the work amongst several independent modules.  A distributed system consists of multiple autonomous computers that communicate through a computer network. The computers interact with each other in order to achieve a common goal. A computer program that runs in a distributed system is called a distributed program.
  • 15.  Java Enterprise System is well-suited for multi-tiered architecture design, where services are placed in tiers according to the functionality they provide.  Each service is logically independent and can be accessed by services in either the same tier or a different tier.
  • 16.  Client tier  Contains client applications that present information to end users. For Java Enterprise System, these applications are typically mail clients, web browsers, or mobile access clients.  Presentation tier  Provides services that display data to end users, allowing users to process and manipulate the presentation. For example, a web mail client or Portal Server component allows users to modify the presentation of information they receive.
  • 17.  Business service tier  Provides back-end services that typically retrieve data from the data tier to provide to other services within the presentation or business service tiers or directly to clients in the client tier. For example, Access Manager provides identity services to other Java Enterprise System components.  Data tier  Provides database services accessed by services within the presentation tier or business service tier. For example, Directory Server provides LDAP directory access to other services.
  • 18.
  • 19.  The client tier consists of programs or applications interact with the user.  Client tier prompts the user inputs into user requests then forwarded to the J2EE server then processed result returned back to the client.  Clients can be classified as a 1) Web Client. 2) Application Client.
  • 20.  Web client consists of dynamic web pages of various mark-up languages that are generated by web components running in web tier.  Web clients are also called as thin clients that usually do not perform things like query database, execute business rules.  Applets: Web pages received from web tier embedded an Applet these run on a web browser.  Web components are APIs for creating a web client program.
  • 21.  The application client runs on the client machine and handles the tasks that give richer user interfaces.  The application client runs on the client machine and handles the tasks that give richer user interfaces.  Application clients can directly access EJBs running in the business tier using an HTTP connection.
  • 22.  Web Tier /Web Component  Web components can be servlets or JSP pages.  Servlets can dynamically process the request and generate the responses.  servlets are dynamic pages to some extent but JSP pages are static in nature.  Web tier might include EJB components for processing user inputs and sends the input to Enterprise bean running in the business tier.
  • 23.  Enterprise components handle usually business code that is logic to solve particular business domains such as banking or finance are handled by enterprise bean running in the business tier.  Enterprise Container receives data from client processes if necessary, sends it to the enterprise information system for storage.  Enterprise bean also retrieves data from storage, processes it and sends it back to the client.
  • 24.  Session Bean: Session bean is used for a conversation with the client. Once the client finishes the execution session bean destroys.  Entity Bean: Holds the particular data stored in a database. Once the server shutdowns or client finishes its execution entity bean data is preserved.  Message Driven Bean: Message bean combines the properties of Session Bean and JMS. Which benefits the business component to receive messages asynchronously.
  • 25.  This tier consists of database servers, enterprise resource planning systems and other data sources.  Resources are typically located on a separate machine than the J2EE Server and accessed by components on the business tier.
  • 26.  Application Client Container  The container includes a set of classes, libraries, other files that are required to execute client programs in their own JVM.  Manages the execution of client components.  It also provides services that enable java client program to execute.  This container is specific to the EJB container.
  • 27.  Web Container is a component of the web server that interacts with Java servlets.  A web container is responsible for managing the servlets lifecycle and mapping URLs.  Web container handles a request from Servlets and JSP files and other files that includes server-side code.  This provides a runtime environment for additional web components security, transaction, deployment, etc.
  • 28.  Enterprise Java bean container consists of server components that contain business logic.  Provides local and remote access to enterprise beans.  EJB container is responsible for creating enterprise bean, binding enterprise bean to the naming services.
  • 29.  The container where the client’s Applet programs will run may be in a web browser or other application programs that support applet programming.  These are normal web pages downloaded from the web servers and executes on the client browser.
  • 30.  Primary technologies - Servlets - JavaServer Pages (JSP) - Enterprise JavaBeans (EJB)  Standard services & supporting technologies - Java database connectivity(JDBC) data access API - Remote Method Invocations (RMI) - Extensible Markup Languages(XML) - JavaIDL - JavaMail
  • 31.  Servlet Technology is used to create web applications.  Servlet technology uses Java language to create web applications.
  • 32.  Web applications are helper applications that resides at web server and build dynamic web pages.  A dynamic page could be anything like a page that randomly chooses picture to display or even a page that displays the current time.  As Servlet Technology uses Java, web applications made using Servlet are Secured, Scalable and Robust.
  • 33.  JSP technology is used to create dynamic web applications.  JSP pages are easier to maintain then a Servlet.  JSP pages are opposite of Servlets as a servlet adds HTML code inside Java code, while JSP adds Java code inside HTML using JSP tags. Everything a Servlet can do, a JSP page can also do it.  Using JSP, one can easily separate Presentation and Business logic.
  • 34. JSP pages are converted into Servlet by the Web Container. The Container translates a JSP page into servlet class source(.java) file and then compiles into a Java Servlet class.
  • 35.  JSP provides an easier way to code dynamic web pages.  JSP does not require additional files like, java class files, web.xml etc  Any change in the JSP code is handled by Web Container(Application server like tomcat), and doesn't require re-compilation.
  • 36.  EJB (Enterprise Java Bean) is used to develop scalable, robust and secured enterprise applications in java.  Middleware services such as security, transaction management etc. are provided by EJB Container to all EJB applications.  To run EJB application, you need an application server (EJB Container) such as Jboss, Glassfish, Weblogic, Websphere etc.
  • 37.  It performs: 1. life cycle management 2. security 3. transaction management 4. object pooling. Note: EJB application is deployed on the server, so it is called server side component also.