SlideShare a Scribd company logo
J2EE WEB-SERVICES
BY PRAFULL JAIN
2016BCEX1056
SEC-B , VIITH SEM
LIST OF CONTENTS:-
1. Application servers
2. What is J2EE?
3. Main Technologies
4. Application Scenarios
5. J2EE APIs and Services
6. EJB – a closer look
APPLICATION SERVERS
• In the beginning
Centralized, non-distributed
terminals
mainframe
terminals
3
In the 90’s, systems should be
client- server
APPLICATION SERVERS
4
Today, enterprise applications use the multi-tier model
“Multi-tier applications” have several independent components.
An application server provides the infrastructure and services to run such applications
Application server products can be separated into 3 categories:
 J2EE-based solutions
 Non-J2EE solutions (PHP, ColdFusion, Perl, etc.)
 And the Microsoft solution (ASP/COM and now .NET with ASP.NET, VB.NET,
C#,
etc.)
WHAT IS J2EE?
 It is a public specification that embodies several
technologies
 Current version is 1.5
 J2EE defines a model for developing multi-tier, web based,
enterprise applications with distributed components
J2EE BENEFITS
 High availability
 Scalability
 Integration with existing systems
 Freedom to choose vendors of application servers, tools, components
 Multi-platform
J2EE BENEFITS
 Flexibility of scenarios and support to several types of clients
 Programming productivity:
Services allow developer to focus on business.
Component development facilitates maintenance and reuse
Enables deploy-time behaviors Supports division of labor
MAIN TECHNOLOGIES
 JavaServer Pages (JSP)
 Servlet
 Enterprise JavaBeans (EJB)
JSPs, servlets and EJBs are application components.
JSP
 Used for web pages with dynamic content
 Processes HTTP requests (non-blocking call-and-return)
 Accepts HTML tags, special JSP tags, and scriptlets of Java code
 Separates static content from presentation logic
 Can be created by web designer using HTML tools
SERVLET
 Used for web pages with dynamic content
 Processes HTTP requests (non-blocking call- and-return)
 Written in Java; uses print statements to render HTML
 Loaded into memory once and then called many times
 Provides APIs for session management
EJB
 EJBs are distributed components used to implement business logic
(no UI)
 Developer concentrates on business logic
 Availability, scalability, security, interoperability and integrability
handled by the J2EE server
 Client of EJBs can be JSPs, servlets, other EJBs and external
aplications
Copyright 2002 © Paulo Merson
J2EE MULTI-TIER MODEL
J2EE Application Scenarios
 Multi-tier typicalapplication
J2EE Application Scenarios
 Stand-aloneclient
J2EE Application Scenarios
 Web-centricapplication
J2EE SERVICES AND APIS
 Java Message Service (JMS)
 Implicit invocation
 Communication is loosely coupled, reliable and asynchronous
 Supports 2 models:
 point-to-point
 publish/subscribe
JMS
 Point-to-point
 Destination is “queue”
JMS
 Publish-subscribe
 Destination is “topic”
J2EE SERVICES AND APIS
 JNDI - Naming and directory services
 Applications use JNDI to locate objects, such as environment
entries, EJBs, datasources, message queues
 JNDI is implementation independent
 Underlying implementation varies: LDAP, DNS, DBMS, etc.
 Transaction service:
 Controls transactions automatically
 You can limit the transactions explicitly
 Or you can specify relationships between methods that make up a
single transaction
J2EE SERVICES AND APIS
 Security




Java Authentication and Authorization Service (JAAS) is the new (J2EE 1.3)
standard for J2EE security
Authentication via userid/password or digital certificates
Role-based authorization limits access of users to resources (URLs, EJB methods)
Embedded security realm
 J2EE Connector Architecture
 Integration to non-J2EE systems, such as mainframes and ERPs.
 Standard API to access different EIS (GlassFish Server)
 Vendors implement EIS-specific resource adapters
J2EE SERVICES AND APIS
 JDBC
 JavaMail
 Java API for XML Parsing (JAXP)
 Web services APIs
EJB – A CLOSER LOOK
HOME INTERFACE
 Methods to create, remove or locate EJB objects
 The home interface implementation is the home object
(generated)
 The home object is a factory
REMOTE INTERFACE
 Business methods available to clients
 The remote interface implementation is the EJB object
(generated)
 The EJB object acts as a proxy to the EJB instance
Copyright 2002 © Paulo Merson 34
EJB – THE BIG PICTURE
EJB AT RUNTIME
TYPES OF EJB
StateFul
Statless
SessionBean Entity Bean Message Driven
Bean
BMP
CMP
Enterprise Bean
SESSION BEAN
 Stateful session bean:
 Retains conversational state (data) on behalf of an individual
client
 If state changed during this invocation, the same state will be
available upon the following invocation
 Example: shopping cart
 Stateless session bean:
 Contains no user-specific data
 Business process that provides a generic service
 Container can pool stateless beans
 Example: shopping catalog
ENTITY BEAN
 Represents business data stored in a database  persistent
object
 Underlying data is normally one row of a table
 A primary key uniquely identifies each bean instance
 Allows shared access from multiple clients
 Can live past the duration of client’s session
 Example: shopping order
 Bean-managed persistence (BMP): bean developer writes JDBC code
to access the database; allows better control for the developer
 Container-managed persistence (CMP): container generates all JDBC
code to access the database; developer has less code to write, but also
less control
MESSAGE-DRIVEN BEAN
 Message consumer for a JMS queue or topic
 Benefits from EJB container services that are not available
to standard JMS consumers
 Has no home or remote interface
 Example: order processing – stock info
SOURCES & RESOURCES
 The J2EE Tutorial. Sun Microsystems
 www.java.sun.com/j2ee
 www.theserverside.com
 www.Wikipedia.com/j2ee
 www.javatpoint.com
QUESTIONS
THANK YOU!
Ad

More Related Content

What's hot (20)

Using Control Flow for Generating Dynamic Content
Using Control Flow for Generating Dynamic ContentUsing Control Flow for Generating Dynamic Content
Using Control Flow for Generating Dynamic Content
Pradip Bhattarai
 
Java database connectivity with MySql
Java database connectivity with MySqlJava database connectivity with MySql
Java database connectivity with MySql
Dhyey Dattani
 
vb.net Constructor and destructor
vb.net Constructor and destructorvb.net Constructor and destructor
vb.net Constructor and destructor
suraj pandey
 
Database architecture
Database architectureDatabase architecture
Database architecture
VENNILAV6
 
ADO .Net
ADO .Net ADO .Net
ADO .Net
DrSonali Vyas
 
Session tracking in servlets
Session tracking in servletsSession tracking in servlets
Session tracking in servlets
vishal choudhary
 
Client server architecture
Client server architectureClient server architecture
Client server architecture
Bhargav Amin
 
EJB 2
EJB 2EJB 2
EJB 2
Khushboo Shaukat
 
Database approach
Database approachDatabase approach
Database approach
uzmajamal
 
Servlet and concurrency
Servlet and concurrencyServlet and concurrency
Servlet and concurrency
KushagraChadha1
 
FDS (Sixth Edition) | C1 | Databases and Database Users
FDS (Sixth Edition) | C1 | Databases and Database UsersFDS (Sixth Edition) | C1 | Databases and Database Users
FDS (Sixth Edition) | C1 | Databases and Database Users
Harsh Verdhan Raj
 
Bcnf
BcnfBcnf
Bcnf
baabtra.com - No. 1 supplier of quality freshers
 
J2ee
J2eeJ2ee
J2ee
Prince Soni
 
Servlet life cycle
Servlet life cycleServlet life cycle
Servlet life cycle
Venkateswara Rao N
 
Components and Advantages of DBMS
Components and Advantages of DBMSComponents and Advantages of DBMS
Components and Advantages of DBMS
Shubham Joon
 
Delegates and events in C#
Delegates and events in C#Delegates and events in C#
Delegates and events in C#
Dr.Neeraj Kumar Pandey
 
Procedures functions structures in VB.Net
Procedures  functions  structures in VB.NetProcedures  functions  structures in VB.Net
Procedures functions structures in VB.Net
tjunicornfx
 
Acid properties
Acid propertiesAcid properties
Acid properties
NomitaKumawat
 
Normalization in DBMS
Normalization in DBMSNormalization in DBMS
Normalization in DBMS
Hitesh Mohapatra
 
Database management functions
Database management functionsDatabase management functions
Database management functions
yhen06
 
Using Control Flow for Generating Dynamic Content
Using Control Flow for Generating Dynamic ContentUsing Control Flow for Generating Dynamic Content
Using Control Flow for Generating Dynamic Content
Pradip Bhattarai
 
Java database connectivity with MySql
Java database connectivity with MySqlJava database connectivity with MySql
Java database connectivity with MySql
Dhyey Dattani
 
vb.net Constructor and destructor
vb.net Constructor and destructorvb.net Constructor and destructor
vb.net Constructor and destructor
suraj pandey
 
Database architecture
Database architectureDatabase architecture
Database architecture
VENNILAV6
 
Session tracking in servlets
Session tracking in servletsSession tracking in servlets
Session tracking in servlets
vishal choudhary
 
Client server architecture
Client server architectureClient server architecture
Client server architecture
Bhargav Amin
 
Database approach
Database approachDatabase approach
Database approach
uzmajamal
 
FDS (Sixth Edition) | C1 | Databases and Database Users
FDS (Sixth Edition) | C1 | Databases and Database UsersFDS (Sixth Edition) | C1 | Databases and Database Users
FDS (Sixth Edition) | C1 | Databases and Database Users
Harsh Verdhan Raj
 
Components and Advantages of DBMS
Components and Advantages of DBMSComponents and Advantages of DBMS
Components and Advantages of DBMS
Shubham Joon
 
Procedures functions structures in VB.Net
Procedures  functions  structures in VB.NetProcedures  functions  structures in VB.Net
Procedures functions structures in VB.Net
tjunicornfx
 
Database management functions
Database management functionsDatabase management functions
Database management functions
yhen06
 

Similar to J2ee web services(overview) (20)

Ejb notes
Ejb notesEjb notes
Ejb notes
Mumbai Academisc
 
J2EE.ppt
J2EE.pptJ2EE.ppt
J2EE.ppt
ShuvraKantiMandal
 
Java J2EE
Java J2EEJava J2EE
Java J2EE
Sandeep Rawat
 
Unite5-EJB-2019.ppt
Unite5-EJB-2019.pptUnite5-EJB-2019.ppt
Unite5-EJB-2019.ppt
Krishna900061
 
J2 EEE SIDES
J2 EEE  SIDESJ2 EEE  SIDES
J2 EEE SIDES
bputhal
 
Java Interview Questions
Java Interview QuestionsJava Interview Questions
Java Interview Questions
anil_kumar132001
 
JEE Course - EJB
JEE Course - EJBJEE Course - EJB
JEE Course - EJB
odedns
 
Introcution to EJB
Introcution to EJBIntrocution to EJB
Introcution to EJB
Tharindu Weerasinghe
 
J2EE day 1
J2EE day 1J2EE day 1
J2EE day 1
Biswabrata Banerjee
 
ADVANCED JAVA MODULE I & II.ppt
ADVANCED JAVA MODULE I & II.pptADVANCED JAVA MODULE I & II.ppt
ADVANCED JAVA MODULE I & II.ppt
rani marri
 
J2ee connector architecture
J2ee connector architectureJ2ee connector architecture
J2ee connector architecture
Subhasis Nayak
 
UNIT 4.pptx
UNIT 4.pptxUNIT 4.pptx
UNIT 4.pptx
OmkarKamble76
 
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
 
Intorduction to struts
Intorduction to strutsIntorduction to struts
Intorduction to struts
Anup72
 
EJB.ppthckhkhohjpfuysfzhxjvkgur6eydgdcjjggjj
EJB.ppthckhkhohjpfuysfzhxjvkgur6eydgdcjjggjjEJB.ppthckhkhohjpfuysfzhxjvkgur6eydgdcjjggjj
EJB.ppthckhkhohjpfuysfzhxjvkgur6eydgdcjjggjj
rani marri
 
Web Logic Jboss Final
Web Logic Jboss FinalWeb Logic Jboss Final
Web Logic Jboss Final
Mohamed Atef
 
Design patterns
Design patternsDesign patterns
Design patterns
revamptechnologies
 
Greate Introduction to Oracle Fusion Middleware and ADF
Greate Introduction to Oracle Fusion Middleware and ADFGreate Introduction to Oracle Fusion Middleware and ADF
Greate Introduction to Oracle Fusion Middleware and ADF
Mohamed Shahpoup
 
J2 ee architecture
J2 ee architectureJ2 ee architecture
J2 ee architecture
saurabhshertukde
 
Spring ppt
Spring pptSpring ppt
Spring ppt
Mumbai Academisc
 
J2 EEE SIDES
J2 EEE  SIDESJ2 EEE  SIDES
J2 EEE SIDES
bputhal
 
JEE Course - EJB
JEE Course - EJBJEE Course - EJB
JEE Course - EJB
odedns
 
ADVANCED JAVA MODULE I & II.ppt
ADVANCED JAVA MODULE I & II.pptADVANCED JAVA MODULE I & II.ppt
ADVANCED JAVA MODULE I & II.ppt
rani marri
 
J2ee connector architecture
J2ee connector architectureJ2ee connector architecture
J2ee connector architecture
Subhasis Nayak
 
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
 
Intorduction to struts
Intorduction to strutsIntorduction to struts
Intorduction to struts
Anup72
 
EJB.ppthckhkhohjpfuysfzhxjvkgur6eydgdcjjggjj
EJB.ppthckhkhohjpfuysfzhxjvkgur6eydgdcjjggjjEJB.ppthckhkhohjpfuysfzhxjvkgur6eydgdcjjggjj
EJB.ppthckhkhohjpfuysfzhxjvkgur6eydgdcjjggjj
rani marri
 
Web Logic Jboss Final
Web Logic Jboss FinalWeb Logic Jboss Final
Web Logic Jboss Final
Mohamed Atef
 
Greate Introduction to Oracle Fusion Middleware and ADF
Greate Introduction to Oracle Fusion Middleware and ADFGreate Introduction to Oracle Fusion Middleware and ADF
Greate Introduction to Oracle Fusion Middleware and ADF
Mohamed Shahpoup
 
Ad

Recently uploaded (20)

To study Digestive system of insect.pptx
To study Digestive system of insect.pptxTo study Digestive system of insect.pptx
To study Digestive system of insect.pptx
Arshad Shaikh
 
Metamorphosis: Life's Transformative Journey
Metamorphosis: Life's Transformative JourneyMetamorphosis: Life's Transformative Journey
Metamorphosis: Life's Transformative Journey
Arshad Shaikh
 
Odoo Inventory Rules and Routes v17 - Odoo Slides
Odoo Inventory Rules and Routes v17 - Odoo SlidesOdoo Inventory Rules and Routes v17 - Odoo Slides
Odoo Inventory Rules and Routes v17 - Odoo Slides
Celine George
 
Operations Management (Dr. Abdulfatah Salem).pdf
Operations Management (Dr. Abdulfatah Salem).pdfOperations Management (Dr. Abdulfatah Salem).pdf
Operations Management (Dr. Abdulfatah Salem).pdf
Arab Academy for Science, Technology and Maritime Transport
 
Unit 6_Introduction_Phishing_Password Cracking.pdf
Unit 6_Introduction_Phishing_Password Cracking.pdfUnit 6_Introduction_Phishing_Password Cracking.pdf
Unit 6_Introduction_Phishing_Password Cracking.pdf
KanchanPatil34
 
CBSE - Grade 8 - Science - Chemistry - Metals and Non Metals - Worksheet
CBSE - Grade 8 - Science - Chemistry - Metals and Non Metals - WorksheetCBSE - Grade 8 - Science - Chemistry - Metals and Non Metals - Worksheet
CBSE - Grade 8 - Science - Chemistry - Metals and Non Metals - Worksheet
Sritoma Majumder
 
Niamh Lucey, Mary Dunne. Health Sciences Libraries Group (LAI). Lighting the ...
Niamh Lucey, Mary Dunne. Health Sciences Libraries Group (LAI). Lighting the ...Niamh Lucey, Mary Dunne. Health Sciences Libraries Group (LAI). Lighting the ...
Niamh Lucey, Mary Dunne. Health Sciences Libraries Group (LAI). Lighting the ...
Library Association of Ireland
 
YSPH VMOC Special Report - Measles Outbreak Southwest US 5-3-2025.pptx
YSPH VMOC Special Report - Measles Outbreak  Southwest US 5-3-2025.pptxYSPH VMOC Special Report - Measles Outbreak  Southwest US 5-3-2025.pptx
YSPH VMOC Special Report - Measles Outbreak Southwest US 5-3-2025.pptx
Yale School of Public Health - The Virtual Medical Operations Center (VMOC)
 
How to Set warnings for invoicing specific customers in odoo
How to Set warnings for invoicing specific customers in odooHow to Set warnings for invoicing specific customers in odoo
How to Set warnings for invoicing specific customers in odoo
Celine George
 
Sinhala_Male_Names.pdf Sinhala_Male_Name
Sinhala_Male_Names.pdf Sinhala_Male_NameSinhala_Male_Names.pdf Sinhala_Male_Name
Sinhala_Male_Names.pdf Sinhala_Male_Name
keshanf79
 
Anti-Depressants pharmacology 1slide.pptx
Anti-Depressants pharmacology 1slide.pptxAnti-Depressants pharmacology 1slide.pptx
Anti-Depressants pharmacology 1slide.pptx
Mayuri Chavan
 
apa-style-referencing-visual-guide-2025.pdf
apa-style-referencing-visual-guide-2025.pdfapa-style-referencing-visual-guide-2025.pdf
apa-style-referencing-visual-guide-2025.pdf
Ishika Ghosh
 
How to Manage Opening & Closing Controls in Odoo 17 POS
How to Manage Opening & Closing Controls in Odoo 17 POSHow to Manage Opening & Closing Controls in Odoo 17 POS
How to Manage Opening & Closing Controls in Odoo 17 POS
Celine George
 
LDMMIA Reiki Master Spring 2025 Mini Updates
LDMMIA Reiki Master Spring 2025 Mini UpdatesLDMMIA Reiki Master Spring 2025 Mini Updates
LDMMIA Reiki Master Spring 2025 Mini Updates
LDM Mia eStudios
 
Stein, Hunt, Green letter to Congress April 2025
Stein, Hunt, Green letter to Congress April 2025Stein, Hunt, Green letter to Congress April 2025
Stein, Hunt, Green letter to Congress April 2025
Mebane Rash
 
UNIT 3 NATIONAL HEALTH PROGRAMMEE. SOCIAL AND PREVENTIVE PHARMACY
UNIT 3 NATIONAL HEALTH PROGRAMMEE. SOCIAL AND PREVENTIVE PHARMACYUNIT 3 NATIONAL HEALTH PROGRAMMEE. SOCIAL AND PREVENTIVE PHARMACY
UNIT 3 NATIONAL HEALTH PROGRAMMEE. SOCIAL AND PREVENTIVE PHARMACY
DR.PRISCILLA MARY J
 
GDGLSPGCOER - Git and GitHub Workshop.pptx
GDGLSPGCOER - Git and GitHub Workshop.pptxGDGLSPGCOER - Git and GitHub Workshop.pptx
GDGLSPGCOER - Git and GitHub Workshop.pptx
azeenhodekar
 
Michelle Rumley & Mairéad Mooney, Boole Library, University College Cork. Tra...
Michelle Rumley & Mairéad Mooney, Boole Library, University College Cork. Tra...Michelle Rumley & Mairéad Mooney, Boole Library, University College Cork. Tra...
Michelle Rumley & Mairéad Mooney, Boole Library, University College Cork. Tra...
Library Association of Ireland
 
Handling Multiple Choice Responses: Fortune Effiong.pptx
Handling Multiple Choice Responses: Fortune Effiong.pptxHandling Multiple Choice Responses: Fortune Effiong.pptx
Handling Multiple Choice Responses: Fortune Effiong.pptx
AuthorAIDNationalRes
 
Exploring-Substances-Acidic-Basic-and-Neutral.pdf
Exploring-Substances-Acidic-Basic-and-Neutral.pdfExploring-Substances-Acidic-Basic-and-Neutral.pdf
Exploring-Substances-Acidic-Basic-and-Neutral.pdf
Sandeep Swamy
 
To study Digestive system of insect.pptx
To study Digestive system of insect.pptxTo study Digestive system of insect.pptx
To study Digestive system of insect.pptx
Arshad Shaikh
 
Metamorphosis: Life's Transformative Journey
Metamorphosis: Life's Transformative JourneyMetamorphosis: Life's Transformative Journey
Metamorphosis: Life's Transformative Journey
Arshad Shaikh
 
Odoo Inventory Rules and Routes v17 - Odoo Slides
Odoo Inventory Rules and Routes v17 - Odoo SlidesOdoo Inventory Rules and Routes v17 - Odoo Slides
Odoo Inventory Rules and Routes v17 - Odoo Slides
Celine George
 
Unit 6_Introduction_Phishing_Password Cracking.pdf
Unit 6_Introduction_Phishing_Password Cracking.pdfUnit 6_Introduction_Phishing_Password Cracking.pdf
Unit 6_Introduction_Phishing_Password Cracking.pdf
KanchanPatil34
 
CBSE - Grade 8 - Science - Chemistry - Metals and Non Metals - Worksheet
CBSE - Grade 8 - Science - Chemistry - Metals and Non Metals - WorksheetCBSE - Grade 8 - Science - Chemistry - Metals and Non Metals - Worksheet
CBSE - Grade 8 - Science - Chemistry - Metals and Non Metals - Worksheet
Sritoma Majumder
 
Niamh Lucey, Mary Dunne. Health Sciences Libraries Group (LAI). Lighting the ...
Niamh Lucey, Mary Dunne. Health Sciences Libraries Group (LAI). Lighting the ...Niamh Lucey, Mary Dunne. Health Sciences Libraries Group (LAI). Lighting the ...
Niamh Lucey, Mary Dunne. Health Sciences Libraries Group (LAI). Lighting the ...
Library Association of Ireland
 
How to Set warnings for invoicing specific customers in odoo
How to Set warnings for invoicing specific customers in odooHow to Set warnings for invoicing specific customers in odoo
How to Set warnings for invoicing specific customers in odoo
Celine George
 
Sinhala_Male_Names.pdf Sinhala_Male_Name
Sinhala_Male_Names.pdf Sinhala_Male_NameSinhala_Male_Names.pdf Sinhala_Male_Name
Sinhala_Male_Names.pdf Sinhala_Male_Name
keshanf79
 
Anti-Depressants pharmacology 1slide.pptx
Anti-Depressants pharmacology 1slide.pptxAnti-Depressants pharmacology 1slide.pptx
Anti-Depressants pharmacology 1slide.pptx
Mayuri Chavan
 
apa-style-referencing-visual-guide-2025.pdf
apa-style-referencing-visual-guide-2025.pdfapa-style-referencing-visual-guide-2025.pdf
apa-style-referencing-visual-guide-2025.pdf
Ishika Ghosh
 
How to Manage Opening & Closing Controls in Odoo 17 POS
How to Manage Opening & Closing Controls in Odoo 17 POSHow to Manage Opening & Closing Controls in Odoo 17 POS
How to Manage Opening & Closing Controls in Odoo 17 POS
Celine George
 
LDMMIA Reiki Master Spring 2025 Mini Updates
LDMMIA Reiki Master Spring 2025 Mini UpdatesLDMMIA Reiki Master Spring 2025 Mini Updates
LDMMIA Reiki Master Spring 2025 Mini Updates
LDM Mia eStudios
 
Stein, Hunt, Green letter to Congress April 2025
Stein, Hunt, Green letter to Congress April 2025Stein, Hunt, Green letter to Congress April 2025
Stein, Hunt, Green letter to Congress April 2025
Mebane Rash
 
UNIT 3 NATIONAL HEALTH PROGRAMMEE. SOCIAL AND PREVENTIVE PHARMACY
UNIT 3 NATIONAL HEALTH PROGRAMMEE. SOCIAL AND PREVENTIVE PHARMACYUNIT 3 NATIONAL HEALTH PROGRAMMEE. SOCIAL AND PREVENTIVE PHARMACY
UNIT 3 NATIONAL HEALTH PROGRAMMEE. SOCIAL AND PREVENTIVE PHARMACY
DR.PRISCILLA MARY J
 
GDGLSPGCOER - Git and GitHub Workshop.pptx
GDGLSPGCOER - Git and GitHub Workshop.pptxGDGLSPGCOER - Git and GitHub Workshop.pptx
GDGLSPGCOER - Git and GitHub Workshop.pptx
azeenhodekar
 
Michelle Rumley & Mairéad Mooney, Boole Library, University College Cork. Tra...
Michelle Rumley & Mairéad Mooney, Boole Library, University College Cork. Tra...Michelle Rumley & Mairéad Mooney, Boole Library, University College Cork. Tra...
Michelle Rumley & Mairéad Mooney, Boole Library, University College Cork. Tra...
Library Association of Ireland
 
Handling Multiple Choice Responses: Fortune Effiong.pptx
Handling Multiple Choice Responses: Fortune Effiong.pptxHandling Multiple Choice Responses: Fortune Effiong.pptx
Handling Multiple Choice Responses: Fortune Effiong.pptx
AuthorAIDNationalRes
 
Exploring-Substances-Acidic-Basic-and-Neutral.pdf
Exploring-Substances-Acidic-Basic-and-Neutral.pdfExploring-Substances-Acidic-Basic-and-Neutral.pdf
Exploring-Substances-Acidic-Basic-and-Neutral.pdf
Sandeep Swamy
 
Ad

J2ee web services(overview)

  • 1. J2EE WEB-SERVICES BY PRAFULL JAIN 2016BCEX1056 SEC-B , VIITH SEM
  • 2. LIST OF CONTENTS:- 1. Application servers 2. What is J2EE? 3. Main Technologies 4. Application Scenarios 5. J2EE APIs and Services 6. EJB – a closer look
  • 3. APPLICATION SERVERS • In the beginning Centralized, non-distributed terminals mainframe terminals 3 In the 90’s, systems should be client- server
  • 4. APPLICATION SERVERS 4 Today, enterprise applications use the multi-tier model “Multi-tier applications” have several independent components. An application server provides the infrastructure and services to run such applications Application server products can be separated into 3 categories:  J2EE-based solutions  Non-J2EE solutions (PHP, ColdFusion, Perl, etc.)  And the Microsoft solution (ASP/COM and now .NET with ASP.NET, VB.NET, C#, etc.)
  • 5. WHAT IS J2EE?  It is a public specification that embodies several technologies  Current version is 1.5  J2EE defines a model for developing multi-tier, web based, enterprise applications with distributed components J2EE BENEFITS  High availability  Scalability  Integration with existing systems  Freedom to choose vendors of application servers, tools, components  Multi-platform
  • 6. J2EE BENEFITS  Flexibility of scenarios and support to several types of clients  Programming productivity: Services allow developer to focus on business. Component development facilitates maintenance and reuse Enables deploy-time behaviors Supports division of labor
  • 7. MAIN TECHNOLOGIES  JavaServer Pages (JSP)  Servlet  Enterprise JavaBeans (EJB) JSPs, servlets and EJBs are application components. JSP  Used for web pages with dynamic content  Processes HTTP requests (non-blocking call-and-return)  Accepts HTML tags, special JSP tags, and scriptlets of Java code  Separates static content from presentation logic  Can be created by web designer using HTML tools
  • 8. SERVLET  Used for web pages with dynamic content  Processes HTTP requests (non-blocking call- and-return)  Written in Java; uses print statements to render HTML  Loaded into memory once and then called many times  Provides APIs for session management EJB  EJBs are distributed components used to implement business logic (no UI)  Developer concentrates on business logic  Availability, scalability, security, interoperability and integrability handled by the J2EE server  Client of EJBs can be JSPs, servlets, other EJBs and external aplications
  • 9. Copyright 2002 © Paulo Merson J2EE MULTI-TIER MODEL
  • 10. J2EE Application Scenarios  Multi-tier typicalapplication
  • 11. J2EE Application Scenarios  Stand-aloneclient
  • 12. J2EE Application Scenarios  Web-centricapplication
  • 13. J2EE SERVICES AND APIS  Java Message Service (JMS)  Implicit invocation  Communication is loosely coupled, reliable and asynchronous  Supports 2 models:  point-to-point  publish/subscribe
  • 16. J2EE SERVICES AND APIS  JNDI - Naming and directory services  Applications use JNDI to locate objects, such as environment entries, EJBs, datasources, message queues  JNDI is implementation independent  Underlying implementation varies: LDAP, DNS, DBMS, etc.  Transaction service:  Controls transactions automatically  You can limit the transactions explicitly  Or you can specify relationships between methods that make up a single transaction
  • 17. J2EE SERVICES AND APIS  Security     Java Authentication and Authorization Service (JAAS) is the new (J2EE 1.3) standard for J2EE security Authentication via userid/password or digital certificates Role-based authorization limits access of users to resources (URLs, EJB methods) Embedded security realm  J2EE Connector Architecture  Integration to non-J2EE systems, such as mainframes and ERPs.  Standard API to access different EIS (GlassFish Server)  Vendors implement EIS-specific resource adapters
  • 18. J2EE SERVICES AND APIS  JDBC  JavaMail  Java API for XML Parsing (JAXP)  Web services APIs
  • 19. EJB – A CLOSER LOOK
  • 20. HOME INTERFACE  Methods to create, remove or locate EJB objects  The home interface implementation is the home object (generated)  The home object is a factory REMOTE INTERFACE  Business methods available to clients  The remote interface implementation is the EJB object (generated)  The EJB object acts as a proxy to the EJB instance
  • 21. Copyright 2002 © Paulo Merson 34
  • 22. EJB – THE BIG PICTURE
  • 24. TYPES OF EJB StateFul Statless SessionBean Entity Bean Message Driven Bean BMP CMP Enterprise Bean
  • 25. SESSION BEAN  Stateful session bean:  Retains conversational state (data) on behalf of an individual client  If state changed during this invocation, the same state will be available upon the following invocation  Example: shopping cart  Stateless session bean:  Contains no user-specific data  Business process that provides a generic service  Container can pool stateless beans  Example: shopping catalog
  • 26. ENTITY BEAN  Represents business data stored in a database  persistent object  Underlying data is normally one row of a table  A primary key uniquely identifies each bean instance  Allows shared access from multiple clients  Can live past the duration of client’s session  Example: shopping order  Bean-managed persistence (BMP): bean developer writes JDBC code to access the database; allows better control for the developer  Container-managed persistence (CMP): container generates all JDBC code to access the database; developer has less code to write, but also less control
  • 27. MESSAGE-DRIVEN BEAN  Message consumer for a JMS queue or topic  Benefits from EJB container services that are not available to standard JMS consumers  Has no home or remote interface  Example: order processing – stock info
  • 28. SOURCES & RESOURCES  The J2EE Tutorial. Sun Microsystems  www.java.sun.com/j2ee  www.theserverside.com  www.Wikipedia.com/j2ee  www.javatpoint.com