尊敬的 微信汇率:1円 ≈ 0.046166 元 支付宝汇率:1円 ≈ 0.046257元 [退出登录]
SlideShare a Scribd company logo
WHAT IS J2EE or
JEE ?
The J2EE platform uses a distributed multi tiered application model for enterprise applications
Application logic is divided into components according to function, and the various application components that make up a
J2EE application are installed on different machines depending on the tier in the multitiered J2EE environment to which the
application component belongs
J2EE application can consist of the three or four tiers shown in Figure 1-1,
Figure 1-1 Multitiered Applications
J2EE Components
J2EE applications are made up of components. A J2EE component is a self-contained functional software unit that is
assembled into a J2EE application with its related classes and files and that communicates with other components. The
J2EE specification defines the following J2EE components:
✔
Application clients and applets are components that run on the client.
✔
Java Servlet and JavaServer Pages (JSP) technology components are web components that run on the server.
✔
Enterprise JavaBeans (EJB) components (enterprise beans) are business components that run on the server.
J2EE components are written in the Java programming language and are compiled in the same way as any program in the
language.
NOTE:
The difference between J2EE components and "standard" Java classes is that J2EE components are assembled into
a J2EE application, are verified to be well formed and in compliance with the J2EE specification, and are deployed
to production, where they are run and managed by the J2EE server.
J2EE Clients
A J2EE client can be a web client or an application client.
Web Clients
A web client consists of two parts: (1) dynamic web pages containing various types of markup language (HTML,
XML, and so on), which are generated by web components running in the web tier, and (2) a web browser, which
renders the pages received from the server.
A web client is sometimes called a thin client. Thin clients usually do not query databases, execute complex business
rules, or connect to legacy applications. When you use a thin client, such heavyweight operations are off-loaded to
enterprise beans executing on the J2EE server, where they can leverage the security, speed, services, and reliability of
J2EE server-side technologies.
Applets
A web page received from the web tier can include an embedded applet. An applet is a small client application
written in the Java programming language that executes in the Java virtual machine installed in the web browser.
However, client systems will likely need the Java Plug-in and possibly a security policy file in order for the applet to
successfully execute in the web browser.
Web components are the preferred API for creating a web client program because no plug-ins or security policy files
are needed on the client systems. Also, web components enable cleaner and more modular application design because
they provide a way to separate applications programming from web page design. Personnel involved in web page
design thus do not need to understand Java programming language syntax to do their jobs.
J2EE Containers
Normally, thin-client multitiered applications are hard to write because they involve many lines of intricate code to handle
transaction and state management, multithreading, resource pooling, and other complex low-level details. The component-
based and platform-independent J2EE architecture makes J2EE applications easy to write because business logic is
organized into reusable components. In addition, the J2EE server provides underlying services in the form of a container for
every component type. Because you do not have to develop these services yourself, you are free to concentrate on solving the
business problem at hand.
Container Services
Containers are the interface between a component and the low-level platform-specific functionality that supports the
component. Before a web component, enterprise bean, or application client component can be executed, it must be
assembled into a J2EE module and deployed into its container.
The assembly process involves specifying container settings for each component in the J2EE application and for the
J2EE application itself. Container settings customize the underlying support provided by the J2EE server, including
services such as security, transaction management, Java Naming and Directory Interface (JNDI) lookups, and
remote connectivity. Here are some of the highlights:
✔
The J2EE security model lets you configure a web component or enterprise bean so that system resources are
accessed only by authorized users.
✔
The J2EE 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 naming and directory services.
✔
The J2EE 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 Types
J2EE Server and Containers
J2EE server
The runtime portion of a J2EE product. A J2EE server provides
EJB and web containers.
Enterprise JavaBeans (EJB) container
Manages the execution of enterprise beans for J2EE
applications. Enterprise beans and their container run on the
J2EE server.
Web container
Manages the execution of JSP page and servlet components for
J2EE applications. Web components and their container run on
the J2EE server.
Application client container
Manages the execution of application client components.
Application clients and their container run on the client.
Applet container
Manages the execution of applets. Consists of a web browser
and Java Plug-in running on the client together
A J2EE application is delivered in an Enterprise Archive (EAR) file,
An EAR file (see Figure 1-6) contains J2EE modules and deployment descriptors.
At runtime, the J2EE server reads the deployment descriptor and acts upon the application, module, or component accordingly.
Packing
A J2EE module consists of one or more J2EE components for the same container type and one component
deployment descriptor of that type. An enterprise bean module deployment descriptor, for example, declares
transaction attributes and security authorizations for an enterprise bean. A J2EE module without an application
deployment descriptor can be deployed as a stand-alone module. The four types of J2EE modules are as follows:
✔
EJB modules, which contain class files for enterprise beans and an EJB deployment descriptor. EJB
modules are packaged as JAR files with a .jar extension.
✔
Web modules, which contain servlet class files, JSP files, supporting class files, GIF and HTML files, and a
web application deployment descriptor. Web modules are packaged as JAR files with a .war (web archive)
extension.
✔
Application client modules, which contain class files and an application client deployment descriptor.
Application client modules are packaged as JAR files with a .jar extension.
✔
Resource adapter modules, which contain all Java interfaces, classes, native libraries, and other
documentation, along with the resource adapter deployment descriptor. Together, these implement the
Connector architecture (see ··J2EE Connector Architecture) for a particular EIS. Resource adapter modules are
packaged as JAR files with an .rar (resource adapter archive) extension
Packing
J2EE 1.4 APIs
J2EE Platform APIs
Enterprise JavaBeans Technology
An Enterprise JavaBeans (EJB) component, or
enterprise bean, is a body of code having fields and
methods to implement modules of business logic.
You can think of an enterprise bean as a building
block that can be used alone or with other enterprise
beans to execute business logic on the J2EE server.
There are three kinds of enterprise beans: session
beans, entity beans, and message-driven beans.
Enterprise beans often interact with databases. One
of the benefits of entity beans is that you do not have
to write any SQL code or use the JDBC API (see
JDBC API) directly to perform database access
operations; the EJB container handles this for you.
However, if you override the default container-
managed persistence for any reason, you will need to
use the JDBC API. Also, if you choose to have a
session bean access the database, you must use the
JDBC API.
Java Servlet Technology
Java servlet technology lets you define HTTP-specific servlet classes. A servlet class extends the capabilities of
servers that host applications that are accessed by way of a request-response programming model. Although servlets
can respond to any type of request, they are commonly used to extend the applications hosted by web servers.
JavaServer Pages Technology
JavaServer Pages (JSP) technology lets you put snippets of servlet code directly into a text-based document. A JSP
page is a text-based document that contains two types of text: static data (which can be expressed in any text-based
format such as HTML, WML, and XML) and JSP elements, which determine how the page constructs dynamic
content.
Java Message Service API
The Java Message Service (JMS) API is a messaging standard that allows J2EE application components to create,
send, receive, and read messages. It enables distributed communication that is loosely coupled, reliable, and
asynchronous.
Java Transaction API
The Java Transaction API (JTA) provides a standard interface for demarcating transactions. The J2EE architecture
provides a default auto commit to handle transaction commits and rollbacks. An auto commit means that any other
applications that are viewing data will see the updated data after each database read or write operation. However, if
your application performs two separate database access operations that depend on each other, you will want to use the
JTA API to demarcate where the entire transaction, including both operations, begins, rolls back, and commits.
JavaMail API
J2EE applications use the JavaMail API to send email notifications. The JavaMail API has two parts: an application-level
interface used by the application components to send mail, and a service provider interface. The J2EE platform includes
JavaMail with a service provider that allows application components to send Internet mail.
JDBC API
The JDBC API lets you invoke SQL commands from Java programming language methods. You use the JDBC API in an
enterprise bean when you override the default container-managed persistence or have a session bean access the database. With
container-managed persistence, database access operations are handled by the container, and your enterprise bean
implementation contains no JDBC code or SQL commands. You can also use the JDBC API from a servlet or a JSP page to
access the database directly without going through an enterprise bean.
The JDBC API has two parts: an application-level interface used by the application components to access a database, and a
service provider interface to attach a JDBC driver to the J2EE platform.
JNDI
J2EE naming services provide application clients, enterprise beans, and web components with access to a JNDI naming
environment. A naming environment allows a component to be customized without the need to access or change the
component's source code. A container implements the component's environment and provides it to the component as a JNDI
naming context
Application Clients
An application client runs on a client machine and provides a way for users to handle tasks that require a richer user
interface than can be provided by a markup language. It typically has a graphical user interface (GUI) created from
the Swing or the Abstract Window Toolkit (AWT) API, but a command-line interface is certainly possible.
Application clients directly access enterprise beans running in the business tier. However, if application requirements
warrant it, an application client can open an HTTP connection to establish communication with a servlet running in
the web tier
Java J2EE
Java J2EE
Java J2EE
Java J2EE
Java J2EE
Java J2EE
Java J2EE

More Related Content

What's hot

Angularjs PPT
Angularjs PPTAngularjs PPT
Angularjs PPT
Amit Baghel
 
Hibernate Presentation
Hibernate  PresentationHibernate  Presentation
Hibernate Presentation
guest11106b
 
JSP
JSPJSP
Web forms in ASP.net
Web forms in ASP.netWeb forms in ASP.net
Web forms in ASP.net
Madhuri Kavade
 
JSP Directives
JSP DirectivesJSP Directives
JSP Directives
ShahDhruv21
 
Java Servlets
Java ServletsJava Servlets
Java Servlets
BG Java EE Course
 
Spring boot Introduction
Spring boot IntroductionSpring boot Introduction
Spring boot Introduction
Jeevesh Pandey
 
Spring Security 5
Spring Security 5Spring Security 5
Spring Security 5
Jesus Perez Franco
 
JNDI
JNDIJNDI
Json
JsonJson
Advance Java Topics (J2EE)
Advance Java Topics (J2EE)Advance Java Topics (J2EE)
Advance Java Topics (J2EE)
slire
 
Spring Boot
Spring BootSpring Boot
Spring Boot
HongSeong Jeon
 
Swing
SwingSwing
Spring boot
Spring bootSpring boot
Spring boot
Gyanendra Yadav
 
What is Ajax technology?
What is Ajax technology?What is Ajax technology?
What is Ajax technology?
JavaTpoint.Com
 
Express js
Express jsExpress js
Express js
Manav Prasad
 
jQuery Ajax
jQuery AjaxjQuery Ajax
jQuery Ajax
Anand Kumar Rajana
 
Ajax ppt
Ajax pptAjax ppt
Jdbc architecture and driver types ppt
Jdbc architecture and driver types pptJdbc architecture and driver types ppt
Jdbc architecture and driver types ppt
kamal kotecha
 
Jsp presentation
Jsp presentationJsp presentation
Jsp presentation
Sher Singh Bardhan
 

What's hot (20)

Angularjs PPT
Angularjs PPTAngularjs PPT
Angularjs PPT
 
Hibernate Presentation
Hibernate  PresentationHibernate  Presentation
Hibernate Presentation
 
JSP
JSPJSP
JSP
 
Web forms in ASP.net
Web forms in ASP.netWeb forms in ASP.net
Web forms in ASP.net
 
JSP Directives
JSP DirectivesJSP Directives
JSP Directives
 
Java Servlets
Java ServletsJava Servlets
Java Servlets
 
Spring boot Introduction
Spring boot IntroductionSpring boot Introduction
Spring boot Introduction
 
Spring Security 5
Spring Security 5Spring Security 5
Spring Security 5
 
JNDI
JNDIJNDI
JNDI
 
Json
JsonJson
Json
 
Advance Java Topics (J2EE)
Advance Java Topics (J2EE)Advance Java Topics (J2EE)
Advance Java Topics (J2EE)
 
Spring Boot
Spring BootSpring Boot
Spring Boot
 
Swing
SwingSwing
Swing
 
Spring boot
Spring bootSpring boot
Spring boot
 
What is Ajax technology?
What is Ajax technology?What is Ajax technology?
What is Ajax technology?
 
Express js
Express jsExpress js
Express js
 
jQuery Ajax
jQuery AjaxjQuery Ajax
jQuery Ajax
 
Ajax ppt
Ajax pptAjax ppt
Ajax ppt
 
Jdbc architecture and driver types ppt
Jdbc architecture and driver types pptJdbc architecture and driver types ppt
Jdbc architecture and driver types ppt
 
Jsp presentation
Jsp presentationJsp presentation
Jsp presentation
 

Similar to Java J2EE

Java Interview Questions
Java Interview QuestionsJava Interview Questions
Java Interview Questions
anil_kumar132001
 
Web programming and development - Introduction
Web programming and development - IntroductionWeb programming and development - Introduction
Web programming and development - Introduction
Joel Briza
 
J2 EEE SIDES
J2 EEE  SIDESJ2 EEE  SIDES
J2 EEE SIDES
bputhal
 
J2EE Architecture Explained
J2EE  Architecture ExplainedJ2EE  Architecture Explained
J2EE Architecture Explained
Adarsh Kr Sinha
 
J2EE day 1
J2EE day 1J2EE day 1
EJ NOV-18 (Sol) (E-next.in).pdf
EJ NOV-18 (Sol) (E-next.in).pdfEJ NOV-18 (Sol) (E-next.in).pdf
EJ NOV-18 (Sol) (E-next.in).pdf
SPAMVEDANT
 
Java EE 7 introduction
Java EE 7  introductionJava EE 7  introduction
Java EE 7 introduction
Moumie Soulemane
 
Java ee introduction
Java ee introductionJava ee introduction
Java ee introduction
Moumie Soulemane
 
Introduction Java Web Framework and Web Server.
Introduction Java Web Framework and Web Server.Introduction Java Web Framework and Web Server.
Introduction Java Web Framework and Web Server.
suranisaunak
 
7) packaging and deployment
7) packaging and deployment7) packaging and deployment
7) packaging and deployment
techbed
 
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
 
JEE Programming - 02 The Containers
JEE Programming - 02 The ContainersJEE Programming - 02 The Containers
JEE Programming - 02 The Containers
Danairat Thanabodithammachari
 
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
 
Intorduction to struts
Intorduction to strutsIntorduction to struts
Intorduction to struts
Anup72
 
Enterprice java
Enterprice javaEnterprice java
Enterprice java
GowriLatha1
 
B Shilpa
B ShilpaB Shilpa
Introduction to j2 ee frameworks
Introduction to j2 ee frameworksIntroduction to j2 ee frameworks
Introduction to j2 ee frameworks
Mukesh Kumar
 
J2ee seminar
J2ee seminarJ2ee seminar
J2ee seminar
Sahil Kukreja
 
Enterprise application developement
Enterprise application developementEnterprise application developement
Enterprise application developement
Archana Jha
 
Project report for final year project
Project report for final year projectProject report for final year project
Project report for final year project
suneel singh
 

Similar to Java J2EE (20)

Java Interview Questions
Java Interview QuestionsJava Interview Questions
Java Interview Questions
 
Web programming and development - Introduction
Web programming and development - IntroductionWeb programming and development - Introduction
Web programming and development - Introduction
 
J2 EEE SIDES
J2 EEE  SIDESJ2 EEE  SIDES
J2 EEE SIDES
 
J2EE Architecture Explained
J2EE  Architecture ExplainedJ2EE  Architecture Explained
J2EE Architecture Explained
 
J2EE day 1
J2EE day 1J2EE day 1
J2EE day 1
 
EJ NOV-18 (Sol) (E-next.in).pdf
EJ NOV-18 (Sol) (E-next.in).pdfEJ NOV-18 (Sol) (E-next.in).pdf
EJ NOV-18 (Sol) (E-next.in).pdf
 
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
 
Introduction Java Web Framework and Web Server.
Introduction Java Web Framework and Web Server.Introduction Java Web Framework and Web Server.
Introduction Java Web Framework and Web Server.
 
7) packaging and deployment
7) packaging and deployment7) packaging and deployment
7) packaging and deployment
 
Introduction to ejb and struts framework
Introduction to ejb and struts frameworkIntroduction to ejb and struts framework
Introduction to ejb and struts framework
 
JEE Programming - 02 The Containers
JEE Programming - 02 The ContainersJEE Programming - 02 The Containers
JEE Programming - 02 The Containers
 
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
 
Intorduction to struts
Intorduction to strutsIntorduction to struts
Intorduction to struts
 
Enterprice java
Enterprice javaEnterprice java
Enterprice java
 
B Shilpa
B ShilpaB Shilpa
B Shilpa
 
Introduction to j2 ee frameworks
Introduction to j2 ee frameworksIntroduction to j2 ee frameworks
Introduction to j2 ee frameworks
 
J2ee seminar
J2ee seminarJ2ee seminar
J2ee seminar
 
Enterprise application developement
Enterprise application developementEnterprise application developement
Enterprise application developement
 
Project report for final year project
Project report for final year projectProject report for final year project
Project report for final year project
 

Recently uploaded

Basic principle and types Static Relays ppt
Basic principle and  types  Static Relays pptBasic principle and  types  Static Relays ppt
Basic principle and types Static Relays ppt
Sri Ramakrishna Institute of Technology
 
Lateral load-resisting systems in buildings.pptx
Lateral load-resisting systems in buildings.pptxLateral load-resisting systems in buildings.pptx
Lateral load-resisting systems in buildings.pptx
DebendraDevKhanal1
 
BBOC407 Module 1.pptx Biology for Engineers
BBOC407  Module 1.pptx Biology for EngineersBBOC407  Module 1.pptx Biology for Engineers
BBOC407 Module 1.pptx Biology for Engineers
sathishkumars808912
 
Update 40 models( Solar Cell ) in SPICE PARK(JUL2024)
Update 40 models( Solar Cell ) in SPICE PARK(JUL2024)Update 40 models( Solar Cell ) in SPICE PARK(JUL2024)
Update 40 models( Solar Cell ) in SPICE PARK(JUL2024)
Tsuyoshi Horigome
 
High Profile Call Girls Ahmedabad 🔥 7737669865 🔥 Real Fun With Sexual Girl Av...
High Profile Call Girls Ahmedabad 🔥 7737669865 🔥 Real Fun With Sexual Girl Av...High Profile Call Girls Ahmedabad 🔥 7737669865 🔥 Real Fun With Sexual Girl Av...
High Profile Call Girls Ahmedabad 🔥 7737669865 🔥 Real Fun With Sexual Girl Av...
dABGO KI CITy kUSHINAGAR Ak47
 
SELENIUM CONF -PALLAVI SHARMA - 2024.pdf
SELENIUM CONF -PALLAVI SHARMA - 2024.pdfSELENIUM CONF -PALLAVI SHARMA - 2024.pdf
SELENIUM CONF -PALLAVI SHARMA - 2024.pdf
Pallavi Sharma
 
Butterfly Valves Manufacturer (LBF Series).pdf
Butterfly Valves Manufacturer (LBF Series).pdfButterfly Valves Manufacturer (LBF Series).pdf
Butterfly Valves Manufacturer (LBF Series).pdf
Lubi Valves
 
Particle Swarm Optimization–Long Short-Term Memory based Channel Estimation w...
Particle Swarm Optimization–Long Short-Term Memory based Channel Estimation w...Particle Swarm Optimization–Long Short-Term Memory based Channel Estimation w...
Particle Swarm Optimization–Long Short-Term Memory based Channel Estimation w...
IJCNCJournal
 
Mahipalpur Call Girls Delhi 🔥 9711199012 ❄- Pick Your Dream Call Girls with 1...
Mahipalpur Call Girls Delhi 🔥 9711199012 ❄- Pick Your Dream Call Girls with 1...Mahipalpur Call Girls Delhi 🔥 9711199012 ❄- Pick Your Dream Call Girls with 1...
Mahipalpur Call Girls Delhi 🔥 9711199012 ❄- Pick Your Dream Call Girls with 1...
simrangupta87541
 
Call Girls Goa (india) ☎️ +91-7426014248 Goa Call Girl
Call Girls Goa (india) ☎️ +91-7426014248 Goa Call GirlCall Girls Goa (india) ☎️ +91-7426014248 Goa Call Girl
Call Girls Goa (india) ☎️ +91-7426014248 Goa Call Girl
sapna sharmap11
 
Literature review for prompt engineering of ChatGPT.pptx
Literature review for prompt engineering of ChatGPT.pptxLiterature review for prompt engineering of ChatGPT.pptx
Literature review for prompt engineering of ChatGPT.pptx
LokerXu2
 
AN INTRODUCTION OF AI & SEARCHING TECHIQUES
AN INTRODUCTION OF AI & SEARCHING TECHIQUESAN INTRODUCTION OF AI & SEARCHING TECHIQUES
AN INTRODUCTION OF AI & SEARCHING TECHIQUES
drshikhapandey2022
 
paper relate Chozhavendhan et al. 2020.pdf
paper relate Chozhavendhan et al. 2020.pdfpaper relate Chozhavendhan et al. 2020.pdf
paper relate Chozhavendhan et al. 2020.pdf
ShurooqTaib
 
Cuttack Call Girls 💯Call Us 🔝 7374876321 🔝 💃 Independent Female Escort Service
Cuttack Call Girls 💯Call Us 🔝 7374876321 🔝 💃 Independent Female Escort ServiceCuttack Call Girls 💯Call Us 🔝 7374876321 🔝 💃 Independent Female Escort Service
Cuttack Call Girls 💯Call Us 🔝 7374876321 🔝 💃 Independent Female Escort Service
yakranividhrini
 
CSP_Study - Notes (Paul McNeill) 2017.pdf
CSP_Study - Notes (Paul McNeill) 2017.pdfCSP_Study - Notes (Paul McNeill) 2017.pdf
CSP_Study - Notes (Paul McNeill) 2017.pdf
Ismail Sultan
 
Better Builder Magazine, Issue 49 / Spring 2024
Better Builder Magazine, Issue 49 / Spring 2024Better Builder Magazine, Issue 49 / Spring 2024
Better Builder Magazine, Issue 49 / Spring 2024
Better Builder Magazine
 
一比一原版(UO毕业证)渥太华大学毕业证如何办理
一比一原版(UO毕业证)渥太华大学毕业证如何办理一比一原版(UO毕业证)渥太华大学毕业证如何办理
一比一原版(UO毕业证)渥太华大学毕业证如何办理
gapboxn
 
Call Girls Chandigarh 🔥 7014168258 🔥 Real Fun With Sexual Girl Available 24/7...
Call Girls Chandigarh 🔥 7014168258 🔥 Real Fun With Sexual Girl Available 24/7...Call Girls Chandigarh 🔥 7014168258 🔥 Real Fun With Sexual Girl Available 24/7...
Call Girls Chandigarh 🔥 7014168258 🔥 Real Fun With Sexual Girl Available 24/7...
shourabjaat424
 
Intuit CRAFT demonstration presentation for sde
Intuit CRAFT demonstration presentation for sdeIntuit CRAFT demonstration presentation for sde
Intuit CRAFT demonstration presentation for sde
ShivangMishra54
 
Asymmetrical Repulsion Magnet Motor Ratio 6-7.pdf
Asymmetrical Repulsion Magnet Motor Ratio 6-7.pdfAsymmetrical Repulsion Magnet Motor Ratio 6-7.pdf
Asymmetrical Repulsion Magnet Motor Ratio 6-7.pdf
felixwold
 

Recently uploaded (20)

Basic principle and types Static Relays ppt
Basic principle and  types  Static Relays pptBasic principle and  types  Static Relays ppt
Basic principle and types Static Relays ppt
 
Lateral load-resisting systems in buildings.pptx
Lateral load-resisting systems in buildings.pptxLateral load-resisting systems in buildings.pptx
Lateral load-resisting systems in buildings.pptx
 
BBOC407 Module 1.pptx Biology for Engineers
BBOC407  Module 1.pptx Biology for EngineersBBOC407  Module 1.pptx Biology for Engineers
BBOC407 Module 1.pptx Biology for Engineers
 
Update 40 models( Solar Cell ) in SPICE PARK(JUL2024)
Update 40 models( Solar Cell ) in SPICE PARK(JUL2024)Update 40 models( Solar Cell ) in SPICE PARK(JUL2024)
Update 40 models( Solar Cell ) in SPICE PARK(JUL2024)
 
High Profile Call Girls Ahmedabad 🔥 7737669865 🔥 Real Fun With Sexual Girl Av...
High Profile Call Girls Ahmedabad 🔥 7737669865 🔥 Real Fun With Sexual Girl Av...High Profile Call Girls Ahmedabad 🔥 7737669865 🔥 Real Fun With Sexual Girl Av...
High Profile Call Girls Ahmedabad 🔥 7737669865 🔥 Real Fun With Sexual Girl Av...
 
SELENIUM CONF -PALLAVI SHARMA - 2024.pdf
SELENIUM CONF -PALLAVI SHARMA - 2024.pdfSELENIUM CONF -PALLAVI SHARMA - 2024.pdf
SELENIUM CONF -PALLAVI SHARMA - 2024.pdf
 
Butterfly Valves Manufacturer (LBF Series).pdf
Butterfly Valves Manufacturer (LBF Series).pdfButterfly Valves Manufacturer (LBF Series).pdf
Butterfly Valves Manufacturer (LBF Series).pdf
 
Particle Swarm Optimization–Long Short-Term Memory based Channel Estimation w...
Particle Swarm Optimization–Long Short-Term Memory based Channel Estimation w...Particle Swarm Optimization–Long Short-Term Memory based Channel Estimation w...
Particle Swarm Optimization–Long Short-Term Memory based Channel Estimation w...
 
Mahipalpur Call Girls Delhi 🔥 9711199012 ❄- Pick Your Dream Call Girls with 1...
Mahipalpur Call Girls Delhi 🔥 9711199012 ❄- Pick Your Dream Call Girls with 1...Mahipalpur Call Girls Delhi 🔥 9711199012 ❄- Pick Your Dream Call Girls with 1...
Mahipalpur Call Girls Delhi 🔥 9711199012 ❄- Pick Your Dream Call Girls with 1...
 
Call Girls Goa (india) ☎️ +91-7426014248 Goa Call Girl
Call Girls Goa (india) ☎️ +91-7426014248 Goa Call GirlCall Girls Goa (india) ☎️ +91-7426014248 Goa Call Girl
Call Girls Goa (india) ☎️ +91-7426014248 Goa Call Girl
 
Literature review for prompt engineering of ChatGPT.pptx
Literature review for prompt engineering of ChatGPT.pptxLiterature review for prompt engineering of ChatGPT.pptx
Literature review for prompt engineering of ChatGPT.pptx
 
AN INTRODUCTION OF AI & SEARCHING TECHIQUES
AN INTRODUCTION OF AI & SEARCHING TECHIQUESAN INTRODUCTION OF AI & SEARCHING TECHIQUES
AN INTRODUCTION OF AI & SEARCHING TECHIQUES
 
paper relate Chozhavendhan et al. 2020.pdf
paper relate Chozhavendhan et al. 2020.pdfpaper relate Chozhavendhan et al. 2020.pdf
paper relate Chozhavendhan et al. 2020.pdf
 
Cuttack Call Girls 💯Call Us 🔝 7374876321 🔝 💃 Independent Female Escort Service
Cuttack Call Girls 💯Call Us 🔝 7374876321 🔝 💃 Independent Female Escort ServiceCuttack Call Girls 💯Call Us 🔝 7374876321 🔝 💃 Independent Female Escort Service
Cuttack Call Girls 💯Call Us 🔝 7374876321 🔝 💃 Independent Female Escort Service
 
CSP_Study - Notes (Paul McNeill) 2017.pdf
CSP_Study - Notes (Paul McNeill) 2017.pdfCSP_Study - Notes (Paul McNeill) 2017.pdf
CSP_Study - Notes (Paul McNeill) 2017.pdf
 
Better Builder Magazine, Issue 49 / Spring 2024
Better Builder Magazine, Issue 49 / Spring 2024Better Builder Magazine, Issue 49 / Spring 2024
Better Builder Magazine, Issue 49 / Spring 2024
 
一比一原版(UO毕业证)渥太华大学毕业证如何办理
一比一原版(UO毕业证)渥太华大学毕业证如何办理一比一原版(UO毕业证)渥太华大学毕业证如何办理
一比一原版(UO毕业证)渥太华大学毕业证如何办理
 
Call Girls Chandigarh 🔥 7014168258 🔥 Real Fun With Sexual Girl Available 24/7...
Call Girls Chandigarh 🔥 7014168258 🔥 Real Fun With Sexual Girl Available 24/7...Call Girls Chandigarh 🔥 7014168258 🔥 Real Fun With Sexual Girl Available 24/7...
Call Girls Chandigarh 🔥 7014168258 🔥 Real Fun With Sexual Girl Available 24/7...
 
Intuit CRAFT demonstration presentation for sde
Intuit CRAFT demonstration presentation for sdeIntuit CRAFT demonstration presentation for sde
Intuit CRAFT demonstration presentation for sde
 
Asymmetrical Repulsion Magnet Motor Ratio 6-7.pdf
Asymmetrical Repulsion Magnet Motor Ratio 6-7.pdfAsymmetrical Repulsion Magnet Motor Ratio 6-7.pdf
Asymmetrical Repulsion Magnet Motor Ratio 6-7.pdf
 

Java J2EE

  • 1.
  • 2. WHAT IS J2EE or JEE ?
  • 3.
  • 4.
  • 5. The J2EE platform uses a distributed multi tiered application model for enterprise applications Application logic is divided into components according to function, and the various application components that make up a J2EE application are installed on different machines depending on the tier in the multitiered J2EE environment to which the application component belongs J2EE application can consist of the three or four tiers shown in Figure 1-1, Figure 1-1 Multitiered Applications
  • 6. J2EE Components J2EE applications are made up of components. A J2EE component is a self-contained functional software unit that is assembled into a J2EE application with its related classes and files and that communicates with other components. The J2EE specification defines the following J2EE components: ✔ Application clients and applets are components that run on the client. ✔ Java Servlet and JavaServer Pages (JSP) technology components are web components that run on the server. ✔ Enterprise JavaBeans (EJB) components (enterprise beans) are business components that run on the server. J2EE components are written in the Java programming language and are compiled in the same way as any program in the language. NOTE: The difference between J2EE components and "standard" Java classes is that J2EE components are assembled into a J2EE application, are verified to be well formed and in compliance with the J2EE specification, and are deployed to production, where they are run and managed by the J2EE server.
  • 7. J2EE Clients A J2EE client can be a web client or an application client. Web Clients A web client consists of two parts: (1) dynamic web pages containing various types of markup language (HTML, XML, and so on), which are generated by web components running in the web tier, and (2) a web browser, which renders the pages received from the server. A web client is sometimes called a thin client. Thin clients usually do not query databases, execute complex business rules, or connect to legacy applications. When you use a thin client, such heavyweight operations are off-loaded to enterprise beans executing on the J2EE server, where they can leverage the security, speed, services, and reliability of J2EE server-side technologies. Applets A web page received from the web tier can include an embedded applet. An applet is a small client application written in the Java programming language that executes in the Java virtual machine installed in the web browser. However, client systems will likely need the Java Plug-in and possibly a security policy file in order for the applet to successfully execute in the web browser. Web components are the preferred API for creating a web client program because no plug-ins or security policy files are needed on the client systems. Also, web components enable cleaner and more modular application design because they provide a way to separate applications programming from web page design. Personnel involved in web page design thus do not need to understand Java programming language syntax to do their jobs.
  • 8. J2EE Containers Normally, thin-client multitiered applications are hard to write because they involve many lines of intricate code to handle transaction and state management, multithreading, resource pooling, and other complex low-level details. The component- based and platform-independent J2EE architecture makes J2EE applications easy to write because business logic is organized into reusable components. In addition, the J2EE server provides underlying services in the form of a container for every component type. Because you do not have to develop these services yourself, you are free to concentrate on solving the business problem at hand.
  • 9. Container Services Containers are the interface between a component and the low-level platform-specific functionality that supports the component. Before a web component, enterprise bean, or application client component can be executed, it must be assembled into a J2EE module and deployed into its container. The assembly process involves specifying container settings for each component in the J2EE application and for the J2EE application itself. Container settings customize the underlying support provided by the J2EE server, including services such as security, transaction management, Java Naming and Directory Interface (JNDI) lookups, and remote connectivity. Here are some of the highlights: ✔ The J2EE security model lets you configure a web component or enterprise bean so that system resources are accessed only by authorized users. ✔ The J2EE 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 naming and directory services. ✔ The J2EE 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
  • 10. Container Types J2EE Server and Containers J2EE server The runtime portion of a J2EE product. A J2EE server provides EJB and web containers. Enterprise JavaBeans (EJB) container Manages the execution of enterprise beans for J2EE applications. Enterprise beans and their container run on the J2EE server. Web container Manages the execution of JSP page and servlet components for J2EE applications. Web components and their container run on the J2EE server. Application client container Manages the execution of application client components. Application clients and their container run on the client. Applet container Manages the execution of applets. Consists of a web browser and Java Plug-in running on the client together
  • 11. A J2EE application is delivered in an Enterprise Archive (EAR) file, An EAR file (see Figure 1-6) contains J2EE modules and deployment descriptors. At runtime, the J2EE server reads the deployment descriptor and acts upon the application, module, or component accordingly. Packing
  • 12. A J2EE module consists of one or more J2EE components for the same container type and one component deployment descriptor of that type. An enterprise bean module deployment descriptor, for example, declares transaction attributes and security authorizations for an enterprise bean. A J2EE module without an application deployment descriptor can be deployed as a stand-alone module. The four types of J2EE modules are as follows: ✔ EJB modules, which contain class files for enterprise beans and an EJB deployment descriptor. EJB modules are packaged as JAR files with a .jar extension. ✔ Web modules, which contain servlet class files, JSP files, supporting class files, GIF and HTML files, and a web application deployment descriptor. Web modules are packaged as JAR files with a .war (web archive) extension. ✔ Application client modules, which contain class files and an application client deployment descriptor. Application client modules are packaged as JAR files with a .jar extension. ✔ Resource adapter modules, which contain all Java interfaces, classes, native libraries, and other documentation, along with the resource adapter deployment descriptor. Together, these implement the Connector architecture (see ··J2EE Connector Architecture) for a particular EIS. Resource adapter modules are packaged as JAR files with an .rar (resource adapter archive) extension Packing
  • 13. J2EE 1.4 APIs J2EE Platform APIs Enterprise JavaBeans Technology An Enterprise JavaBeans (EJB) component, or enterprise bean, is a body of code having fields and methods to implement modules of business logic. You can think of an enterprise bean as a building block that can be used alone or with other enterprise beans to execute business logic on the J2EE server. There are three kinds of enterprise beans: session beans, entity beans, and message-driven beans. Enterprise beans often interact with databases. One of the benefits of entity beans is that you do not have to write any SQL code or use the JDBC API (see JDBC API) directly to perform database access operations; the EJB container handles this for you. However, if you override the default container- managed persistence for any reason, you will need to use the JDBC API. Also, if you choose to have a session bean access the database, you must use the JDBC API.
  • 14. Java Servlet Technology Java servlet technology lets you define HTTP-specific servlet classes. A servlet class extends the capabilities of servers that host applications that are accessed by way of a request-response programming model. Although servlets can respond to any type of request, they are commonly used to extend the applications hosted by web servers. JavaServer Pages Technology JavaServer Pages (JSP) technology lets you put snippets of servlet code directly into a text-based document. A JSP page is a text-based document that contains two types of text: static data (which can be expressed in any text-based format such as HTML, WML, and XML) and JSP elements, which determine how the page constructs dynamic content. Java Message Service API The Java Message Service (JMS) API is a messaging standard that allows J2EE application components to create, send, receive, and read messages. It enables distributed communication that is loosely coupled, reliable, and asynchronous. Java Transaction API The Java Transaction API (JTA) provides a standard interface for demarcating transactions. The J2EE architecture provides a default auto commit to handle transaction commits and rollbacks. An auto commit means that any other applications that are viewing data will see the updated data after each database read or write operation. However, if your application performs two separate database access operations that depend on each other, you will want to use the JTA API to demarcate where the entire transaction, including both operations, begins, rolls back, and commits.
  • 15. JavaMail API J2EE applications use the JavaMail API to send email notifications. The JavaMail API has two parts: an application-level interface used by the application components to send mail, and a service provider interface. The J2EE platform includes JavaMail with a service provider that allows application components to send Internet mail. JDBC API The JDBC API lets you invoke SQL commands from Java programming language methods. You use the JDBC API in an enterprise bean when you override the default container-managed persistence or have a session bean access the database. With container-managed persistence, database access operations are handled by the container, and your enterprise bean implementation contains no JDBC code or SQL commands. You can also use the JDBC API from a servlet or a JSP page to access the database directly without going through an enterprise bean. The JDBC API has two parts: an application-level interface used by the application components to access a database, and a service provider interface to attach a JDBC driver to the J2EE platform. JNDI J2EE naming services provide application clients, enterprise beans, and web components with access to a JNDI naming environment. A naming environment allows a component to be customized without the need to access or change the component's source code. A container implements the component's environment and provides it to the component as a JNDI naming context
  • 16. Application Clients An application client runs on a client machine and provides a way for users to handle tasks that require a richer user interface than can be provided by a markup language. It typically has a graphical user interface (GUI) created from the Swing or the Abstract Window Toolkit (AWT) API, but a command-line interface is certainly possible. Application clients directly access enterprise beans running in the business tier. However, if application requirements warrant it, an application client can open an HTTP connection to establish communication with a servlet running in the web tier
  翻译: