SlideShare une entreprise Scribd logo
1  sur  15
EJB AND JSP
Submitted by,
D.SHANMUGAPRIYA
I-MSC(IT)
NADAR SARASWATHI COLLEGE OF ARTS
AND SCIENCE
CONTENTS OF EJB
 Introduction
 What is the difference between web server &
Application server
 Java enterprise edition on APIs
 Elements of EJB components
 Accessed by the EJB components
 EJB Architecture
INTRODUCTION
 Is the server side component architecture for java
platform , enterprise edition(Java EE)
 EJB technology enables rapid and simplified
development of distributed , transactional , secure
& portable applications based on java technology.
 Presented by sun in the 1999,which EJB
application runs in a J2E server or Application
server.
DIFFERENCE BETWEEN WEB SERVER
& APPLICATION SERVER
 A web server contains only a web container but an
application server contains both a web container
and a EJB container.
 A web server does not follows clustering but an
application server follows clustering.
JAVA ENTERPRISE EDITION ON API’s
CLIENT
SERVEL
TS/JSP
EJB JDB20 DATA
JTS/JTA JNDR
JAVAM
AIL
RMI-
IICP
JMS
CLIENT
SERVEL
TS/JSP
EJB JDB20 DATA
ACCESSED BY THE EJB COMPONENTS
 EJB components runs inside a server and it can
be accessible by the following types of clients.
 A desktop application can access EJB.
 An applet can access EJB.
 A web client using serve or JSP can access EJB
 One EJB can access another EJB.
 A CORBA client can access EJB.
ELEMENTS OF EJB COMPONENTS
 Home interface
 Remote interface
 Bean class
 1.HOME INTERFACE:-Home interface is a factory
for creating EJB objects.
 The home interface contains life cycle methods like
create() , remove() , find xxx() ,etc.
 Each method in home interface returns the remote
object . Or EJB object.
Cont..
 2.REMOTE INTERFACE:-It contains logic
methods in order to create a remote interface
our interface must be extend EJB object
interface.
 Remote interface is given in JAVAX .
ejb.*;package.
 3.BEAN CLASS:-The Bean Class contains both
life cycle methods implementation + business
logic methods give in home interface &
remote interface and also it contains
container call back methods.
EJB ARCHITECTURE
H
R
client
NAMING SERVICE
HOME
OBJ
EJB
OBJ
BEAN
OBJECT
R
CLIENT
EJB
SERVER
JSP
INTRODUCTION
 Java server pages or as in normally called JSP is a
java based technology that simplifies the
developing of dynamic web sites
 It is a technology developed sun micro system
back in 1999.
 JSP pages are HTML pages with embedded code
that allows to access data form java code running
on the server.
 JSP contains an extension on of . JSP
JSPARCHITECTURE
CLIEN
T
INTER
NET
WEB
SERV
ER
DATA
BASE
Client
request
web
server
Html
sent to
client
HTML
JSP EXECUTION PROCEDURE
Syste
m
JSP
JSP
translator
serve
JSP
translato
r
buffer
Server
object
JRE
JSP LIFE-CYCLE
Java server page
JSPLNIT () (LOAD
PROCESS)
JSP SERVICES ()
(ACCEPT
REQUEST)
JSP DESTROY ()
(UNLOAD
RESOURCES)
REQUEST
RESPONS
E
ADVANTAGE
 Used need not write HTML and java code
separately.
 JSP can be used for both front end and for writing
business logic.
 JSP is dynamic compilation which means when a
JSP is modified.
 JSP IS EFFICIENT:-every request for a JSP is
handled by a simple java method.
 JSP IS SCALABLE:-easy integration with other
backend services.
DISADVANTAGE
 As JSP pages are translated to serve and
complied.
 It is difficult to trace errors occurred in JSP
pages.
 JSP pages require double the disk space to hold
the JSP page.

Contenu connexe

Tendances

Enterprise Java Beans( E)
Enterprise  Java  Beans( E)Enterprise  Java  Beans( E)
Enterprise Java Beans( E)
vikram singh
 
JEE Course - EJB
JEE Course - EJBJEE Course - EJB
JEE Course - EJB
odedns
 
EJB 3.1 by Bert Ertman
EJB 3.1 by Bert ErtmanEJB 3.1 by Bert Ertman
EJB 3.1 by Bert Ertman
Stephan Janssen
 
Ejb 2.0
Ejb 2.0Ejb 2.0
Ejb 2.0
sukace
 
Java.sql package
Java.sql packageJava.sql package
Java.sql package
myrajendra
 

Tendances (20)

enterprise java bean
enterprise java beanenterprise java bean
enterprise java bean
 
PPT on JAVA
PPT  on JAVA PPT  on JAVA
PPT on JAVA
 
Enterprise Java Beans - EJB
Enterprise Java Beans - EJBEnterprise Java Beans - EJB
Enterprise Java Beans - EJB
 
EJB 3.0 Java Persistence with Oracle TopLink
EJB 3.0 Java Persistence with Oracle TopLinkEJB 3.0 Java Persistence with Oracle TopLink
EJB 3.0 Java Persistence with Oracle TopLink
 
Enterprise Java Beans( E)
Enterprise  Java  Beans( E)Enterprise  Java  Beans( E)
Enterprise Java Beans( E)
 
Enterprise JavaBeans(EJB)
Enterprise JavaBeans(EJB)Enterprise JavaBeans(EJB)
Enterprise JavaBeans(EJB)
 
Introduction to EJB
Introduction to EJBIntroduction to EJB
Introduction to EJB
 
Enterprise java beans
Enterprise java beansEnterprise java beans
Enterprise java beans
 
JEE Course - EJB
JEE Course - EJBJEE Course - EJB
JEE Course - EJB
 
EJB3 Basics
EJB3 BasicsEJB3 Basics
EJB3 Basics
 
Java bean
Java beanJava bean
Java bean
 
EJB 3.1 by Bert Ertman
EJB 3.1 by Bert ErtmanEJB 3.1 by Bert Ertman
EJB 3.1 by Bert Ertman
 
EJB .
EJB .EJB .
EJB .
 
Free EJB Tutorial | VirtualNuggets
Free EJB Tutorial | VirtualNuggetsFree EJB Tutorial | VirtualNuggets
Free EJB Tutorial | VirtualNuggets
 
Entity beans in java
Entity beans in javaEntity beans in java
Entity beans in java
 
Ejb 2.0
Ejb 2.0Ejb 2.0
Ejb 2.0
 
jdbc
jdbcjdbc
jdbc
 
J2EE and Servlet
J2EE and Servlet J2EE and Servlet
J2EE and Servlet
 
Java.sql package
Java.sql packageJava.sql package
Java.sql package
 
JDBC Driver Types
JDBC Driver TypesJDBC Driver Types
JDBC Driver Types
 

Similaire à Ejbandjsp 200119145750

J2 EEE SIDES
J2 EEE  SIDESJ2 EEE  SIDES
J2 EEE SIDES
bputhal
 
J2EE - Practical Overview
J2EE - Practical OverviewJ2EE - Practical Overview
J2EE - Practical Overview
Svetlin Nakov
 
Real world java_ee_patterns
Real world java_ee_patternsReal world java_ee_patterns
Real world java_ee_patterns
Alassane Diallo
 

Similaire à Ejbandjsp 200119145750 (20)

Ejb course in-mumbai
Ejb course in-mumbaiEjb course in-mumbai
Ejb course in-mumbai
 
Enterprise application developement
Enterprise application developementEnterprise application developement
Enterprise application developement
 
Sun Java EE 6 Overview
Sun Java EE 6 OverviewSun Java EE 6 Overview
Sun Java EE 6 Overview
 
Intorduction to struts
Intorduction to strutsIntorduction to struts
Intorduction to struts
 
Aravind vinnakota ejb_architecture
Aravind vinnakota ejb_architectureAravind vinnakota ejb_architecture
Aravind vinnakota ejb_architecture
 
J2EE day 1
J2EE day 1J2EE day 1
J2EE day 1
 
J2 Ee Overview
J2 Ee OverviewJ2 Ee Overview
J2 Ee Overview
 
JAVA J2EE Training in Coimbatore - Fundamentals of Java J2EE
JAVA J2EE Training in Coimbatore - Fundamentals of Java J2EE JAVA J2EE Training in Coimbatore - Fundamentals of Java J2EE
JAVA J2EE Training in Coimbatore - Fundamentals of Java J2EE
 
J2 EEE SIDES
J2 EEE  SIDESJ2 EEE  SIDES
J2 EEE SIDES
 
Summer training java
Summer training javaSummer training java
Summer training java
 
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 to ejb and struts framework
Introduction to ejb and struts frameworkIntroduction to ejb and struts framework
Introduction to ejb and struts framework
 
Java Enterprise Edition 6 Overview
Java Enterprise Edition 6 OverviewJava Enterprise Edition 6 Overview
Java Enterprise Edition 6 Overview
 
4. J2EE.pptx
4. J2EE.pptx4. J2EE.pptx
4. J2EE.pptx
 
Summer training java
Summer training javaSummer training java
Summer training java
 
J2EE - Practical Overview
J2EE - Practical OverviewJ2EE - Practical Overview
J2EE - Practical Overview
 
Introduction to Java EE EJB Component
Introduction to Java EE EJB ComponentIntroduction to Java EE EJB Component
Introduction to Java EE EJB Component
 
Real world java_ee_patterns
Real world java_ee_patternsReal world java_ee_patterns
Real world java_ee_patterns
 

Plus de rajshreemuthiah (20)

oracle
oracleoracle
oracle
 
quality
qualityquality
quality
 
bigdata
bigdatabigdata
bigdata
 
polymorphism
polymorphismpolymorphism
polymorphism
 
solutions and understanding text analytics
solutions and understanding text analyticssolutions and understanding text analytics
solutions and understanding text analytics
 
interface
interfaceinterface
interface
 
Testing &ampdebugging
Testing &ampdebuggingTesting &ampdebugging
Testing &ampdebugging
 
concurrency control
concurrency controlconcurrency control
concurrency control
 
Education
EducationEducation
Education
 
Formal verification
Formal verificationFormal verification
Formal verification
 
Transaction management
Transaction management Transaction management
Transaction management
 
Multi thread
Multi threadMulti thread
Multi thread
 
System testing
System testingSystem testing
System testing
 
software maintenance
software maintenancesoftware maintenance
software maintenance
 
exception handling
exception handlingexception handling
exception handling
 
e governance
e governancee governance
e governance
 
recovery management
recovery managementrecovery management
recovery management
 
Implementing polymorphism
Implementing polymorphismImplementing polymorphism
Implementing polymorphism
 
Buffer managements
Buffer managementsBuffer managements
Buffer managements
 
os linux
os linuxos linux
os linux
 

Dernier

Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Victor Rentea
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 

Dernier (20)

Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot ModelMcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistan
 
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with Milvus
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Six Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal OntologySix Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal Ontology
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
 

Ejbandjsp 200119145750

  • 1. EJB AND JSP Submitted by, D.SHANMUGAPRIYA I-MSC(IT) NADAR SARASWATHI COLLEGE OF ARTS AND SCIENCE
  • 2. CONTENTS OF EJB  Introduction  What is the difference between web server & Application server  Java enterprise edition on APIs  Elements of EJB components  Accessed by the EJB components  EJB Architecture
  • 3. INTRODUCTION  Is the server side component architecture for java platform , enterprise edition(Java EE)  EJB technology enables rapid and simplified development of distributed , transactional , secure & portable applications based on java technology.  Presented by sun in the 1999,which EJB application runs in a J2E server or Application server.
  • 4. DIFFERENCE BETWEEN WEB SERVER & APPLICATION SERVER  A web server contains only a web container but an application server contains both a web container and a EJB container.  A web server does not follows clustering but an application server follows clustering.
  • 5. JAVA ENTERPRISE EDITION ON API’s CLIENT SERVEL TS/JSP EJB JDB20 DATA JTS/JTA JNDR JAVAM AIL RMI- IICP JMS CLIENT SERVEL TS/JSP EJB JDB20 DATA
  • 6. ACCESSED BY THE EJB COMPONENTS  EJB components runs inside a server and it can be accessible by the following types of clients.  A desktop application can access EJB.  An applet can access EJB.  A web client using serve or JSP can access EJB  One EJB can access another EJB.  A CORBA client can access EJB.
  • 7. ELEMENTS OF EJB COMPONENTS  Home interface  Remote interface  Bean class  1.HOME INTERFACE:-Home interface is a factory for creating EJB objects.  The home interface contains life cycle methods like create() , remove() , find xxx() ,etc.  Each method in home interface returns the remote object . Or EJB object.
  • 8. Cont..  2.REMOTE INTERFACE:-It contains logic methods in order to create a remote interface our interface must be extend EJB object interface.  Remote interface is given in JAVAX . ejb.*;package.  3.BEAN CLASS:-The Bean Class contains both life cycle methods implementation + business logic methods give in home interface & remote interface and also it contains container call back methods.
  • 10. JSP INTRODUCTION  Java server pages or as in normally called JSP is a java based technology that simplifies the developing of dynamic web sites  It is a technology developed sun micro system back in 1999.  JSP pages are HTML pages with embedded code that allows to access data form java code running on the server.  JSP contains an extension on of . JSP
  • 13. JSP LIFE-CYCLE Java server page JSPLNIT () (LOAD PROCESS) JSP SERVICES () (ACCEPT REQUEST) JSP DESTROY () (UNLOAD RESOURCES) REQUEST RESPONS E
  • 14. ADVANTAGE  Used need not write HTML and java code separately.  JSP can be used for both front end and for writing business logic.  JSP is dynamic compilation which means when a JSP is modified.  JSP IS EFFICIENT:-every request for a JSP is handled by a simple java method.  JSP IS SCALABLE:-easy integration with other backend services.
  • 15. DISADVANTAGE  As JSP pages are translated to serve and complied.  It is difficult to trace errors occurred in JSP pages.  JSP pages require double the disk space to hold the JSP page.