SlideShare ist ein Scribd-Unternehmen logo
1 von 18
JAVA PLATFORMS

•J2SE – Java 2 Standard Edition    Java for the desktop / workstation
     •
•J2ME – Java 2 Micro Edition       Java for the consumer device

•J2EE - Java 2 Enterprise Edition  Java for the server
J2ee   J2se   J2me
J2EE Supports

• Extensible Markup Language

• Web Applications

• Web Services Support / WSDL Standard Format

• UDDI and ebXML Standard Formats

• HTTP-SOAP Transport Protocol
•J2EE comes with a built in application server

•J2EE defines Java API for XML Processing (JAXP)
API for processing XML

•Uses SAX and DOM standards
•J2EE does not specify the nature and structure of
the runtime.

•J2EE Container – capability of the runtime to
manage application components.

•J2EE APIs specifies the contract between the
applications and the container.
Data

                                                                                                                         JDBC

                                                                                                                                    RDBMS

Client                                    Application Logic
                                                                                                                        JavaMail

                         Web Container                                                                                             Mail Server
HTML/
 XML                                                                                                                      RMI
           Servlets                        JSPs
                                                                                       J2EE
           RMI/IIOP




                                                JavaMail                            Application
                                   JDBC
                      JNDI




                                                                                      Server
                                          JMS

                                                                                                                         IIOP
                             JTA




                                                           JAF
 Applet
                                                                                EJB Container                                        CORBA
                                                                 Session Beans                   Entity Beans
                                                                                                                        JNDI
 Client
Applica-
  tion
                                                                  RMI/IIOP
                                                                                                                               Directory Services




                                                                                                       JavaMail
                                                                                          JDBC
                                                                             JNDI
                                                                                                                         JMS



                                                                                                 JMS
                                                                                    JTA




                                                                                                                  JAF
•The Component technologies – to hold the business logic. (JSP, Servlets and EJB)

•The Service technologies – to provide supported services to application
components (JDBC, JTA, JNDI)

•The Communication technologies – transparent to appln programmer, provide
the mechanism for communication among different parts of the appln.
(JMS, JavaMail, RMI-IIOP)

•They are re-usable software units containing business logic.

• An EJB is just a collection of Java classes and an XML file, bundled into a single
unit.
• They are re-usable software units containing business logic.

• An EJB is just a collection of Java classes and an XML file, bundled into a
  single unit.

• Java classes must follow certain rules and provide certain callback
   methods.
• Session Beans

• Entity Beans

• Message-driven Beans
• Intended for the use of a single client.

• Lifespan is limited to that of its client.

• When the client leaves the web site or the application is shut down, the
  session bean disappears.
Can keep information on behalf of its client across method calls.


For example,

     Full information of the client is stored in every transactions
example , credit card
• This bean implements a particular business logic, though its
created for a particular client, it doesn’t have to remember anything
about the client.


• Can be considered as a remote procedure that gets executed on
behalf of the client, taking some parameters and returns the result
(of calculation in a particular business rule context).
•Persistence is its basic property.

•It stays around even after the program is terminated until it is deleted.

•When the program is restarted, it can gain access to this bean again.

•It can be used by any program on the network.

•It is executed remotely.

•It is identified by a primary key.

•Its nothing but the object representation of records in RDBMS tables.
Advantages

• J2EE provides a complete architecture for developing

       - Distributed systems including object persistence, session tracking,
         transaction management, …

•Separation of technical and application-specific code

       - Deployment descriptors
       - Container Managed Persistence
Disadvantages

• Very complex technology
     Even simple examples require many interfaces, bean classes, deployment
     descriptors.
• Many errors occur only at runtime (several steps required until the application is
                                                                              running)
- Compilation
- Packaging
- Deployment
- Running the application
A Web Application Framework (WAF) is a
reusable, skeletal, semi-complete modular platform
that can be specialized to produce custom web
applications , which commonly serve the web browsers
via the Http's protocol.


WAF usually implements the Model-View-Controller
(MVC) design pattern, typically in the Model 2
architecture to develop request-response web-based
applications on the Java EE and .NET models.
Request-based Framework :
          Struts
          WebWork
          Beehive , Stripes

Component-based Framework
        Jave Server Faces (JSF)
        Tapestry
        Wicket

Hybrid – Meta Framework
          RIFE
          Spring Framework

RIA-based Framework
          DWR
          Echo2
          JSON-RPC-Java

Weitere ähnliche Inhalte

Was ist angesagt? (20)

Jdbc ppt
Jdbc pptJdbc ppt
Jdbc ppt
 
Java RMI
Java RMIJava RMI
Java RMI
 
CORE JAVA
CORE JAVACORE JAVA
CORE JAVA
 
Difference between java script and jquery
Difference between java script and jqueryDifference between java script and jquery
Difference between java script and jquery
 
Entity beans in java
Entity beans in javaEntity beans in java
Entity beans in java
 
Net framework
Net frameworkNet framework
Net framework
 
EJB .
EJB .EJB .
EJB .
 
Interface
InterfaceInterface
Interface
 
Association agggregation and composition
Association agggregation and compositionAssociation agggregation and composition
Association agggregation and composition
 
7 Deadlocks
7 Deadlocks7 Deadlocks
7 Deadlocks
 
Exception handling
Exception handling Exception handling
Exception handling
 
Introduction to EJB
Introduction to EJBIntroduction to EJB
Introduction to EJB
 
C# Framework class library
C# Framework class libraryC# Framework class library
C# Framework class library
 
Jdbc ppt
Jdbc pptJdbc ppt
Jdbc ppt
 
Introduction to Java
Introduction to Java Introduction to Java
Introduction to Java
 
Oops concept in c++ unit 3 -topic 4
Oops concept in c++ unit 3 -topic 4Oops concept in c++ unit 3 -topic 4
Oops concept in c++ unit 3 -topic 4
 
Java RMI
Java RMIJava RMI
Java RMI
 
oops concept in java | object oriented programming in java
oops concept in java | object oriented programming in javaoops concept in java | object oriented programming in java
oops concept in java | object oriented programming in java
 
LALR Parser Presentation ppt
LALR Parser Presentation pptLALR Parser Presentation ppt
LALR Parser Presentation ppt
 
domain model.ppt
domain model.pptdomain model.ppt
domain model.ppt
 

Ähnlich wie J2ee and web services

Web Application Architecture
Web Application ArchitectureWeb Application Architecture
Web Application ArchitectureAbhishek Chikane
 
Summer training java
Summer training javaSummer training java
Summer training javaArshit Rai
 
Summer training java
Summer training javaSummer training java
Summer training javaArshit Rai
 
Java Web Programming [1/9] : Introduction to Web Application
Java Web Programming [1/9] : Introduction to Web ApplicationJava Web Programming [1/9] : Introduction to Web Application
Java Web Programming [1/9] : Introduction to Web ApplicationIMC Institute
 
N(i)2 technical architecture 2.0 (v1 1)
N(i)2 technical architecture 2.0 (v1 1)N(i)2 technical architecture 2.0 (v1 1)
N(i)2 technical architecture 2.0 (v1 1)kvz
 
Ebs 12.2 con9021_pdf_9021_0001
Ebs 12.2 con9021_pdf_9021_0001Ebs 12.2 con9021_pdf_9021_0001
Ebs 12.2 con9021_pdf_9021_0001jucaab
 
ECM Technical Solution
ECM Technical SolutionECM Technical Solution
ECM Technical SolutionThanh Nguyen
 
Shin J2 Ee Programming Half Day
Shin J2 Ee Programming Half DayShin J2 Ee Programming Half Day
Shin J2 Ee Programming Half Daylokendralodha
 
WSO2Con2011: Using WSO2 ESB with SAP ERP (Retail)
WSO2Con2011: Using WSO2 ESB with SAP ERP (Retail)WSO2Con2011: Using WSO2 ESB with SAP ERP (Retail)
WSO2Con2011: Using WSO2 ESB with SAP ERP (Retail)WSO2
 
Spark IT 2011 - Java EE 6 Workshop
Spark IT 2011 - Java EE 6 WorkshopSpark IT 2011 - Java EE 6 Workshop
Spark IT 2011 - Java EE 6 WorkshopArun Gupta
 
Sun Java EE 6 Overview
Sun Java EE 6 OverviewSun Java EE 6 Overview
Sun Java EE 6 Overviewsbobde
 
Java EE / GlassFish Strategy & Roadmap @ JavaOne 2011
Java EE / GlassFish Strategy & Roadmap @ JavaOne 2011Java EE / GlassFish Strategy & Roadmap @ JavaOne 2011
Java EE / GlassFish Strategy & Roadmap @ JavaOne 2011Arun Gupta
 
SD Forum 1999 XML Lessons Learned
SD Forum 1999 XML Lessons LearnedSD Forum 1999 XML Lessons Learned
SD Forum 1999 XML Lessons LearnedTed Leung
 
Java EE Technical Keynote - JavaOne India 2011
Java EE Technical Keynote - JavaOne India 2011Java EE Technical Keynote - JavaOne India 2011
Java EE Technical Keynote - JavaOne India 2011Arun Gupta
 
Java Ide Day 2008 - Presentation on JDeveloper by Paolo Ramasso
Java Ide Day 2008 - Presentation on JDeveloper by Paolo RamassoJava Ide Day 2008 - Presentation on JDeveloper by Paolo Ramasso
Java Ide Day 2008 - Presentation on JDeveloper by Paolo RamassoJUG Genova
 
Florian adler minute project
Florian adler   minute projectFlorian adler   minute project
Florian adler minute projectDmitry Buzdin
 
Apache Camel: The Swiss Army Knife of Open Source Integration
Apache Camel: The Swiss Army Knife of Open Source IntegrationApache Camel: The Swiss Army Knife of Open Source Integration
Apache Camel: The Swiss Army Knife of Open Source Integrationprajods
 

Ähnlich wie J2ee and web services (20)

Web Application Architecture
Web Application ArchitectureWeb Application Architecture
Web Application Architecture
 
Summer training java
Summer training javaSummer training java
Summer training java
 
Summer training java
Summer training javaSummer training java
Summer training java
 
Java Web Programming [1/9] : Introduction to Web Application
Java Web Programming [1/9] : Introduction to Web ApplicationJava Web Programming [1/9] : Introduction to Web Application
Java Web Programming [1/9] : Introduction to Web Application
 
N(i)2 technical architecture 2.0 (v1 1)
N(i)2 technical architecture 2.0 (v1 1)N(i)2 technical architecture 2.0 (v1 1)
N(i)2 technical architecture 2.0 (v1 1)
 
Ebs 12.2 con9021_pdf_9021_0001
Ebs 12.2 con9021_pdf_9021_0001Ebs 12.2 con9021_pdf_9021_0001
Ebs 12.2 con9021_pdf_9021_0001
 
ECM Technical Solution
ECM Technical SolutionECM Technical Solution
ECM Technical Solution
 
Shin J2 Ee Programming Half Day
Shin J2 Ee Programming Half DayShin J2 Ee Programming Half Day
Shin J2 Ee Programming Half Day
 
Ra business intelligence 0.1
Ra business intelligence 0.1Ra business intelligence 0.1
Ra business intelligence 0.1
 
WSO2Con2011: Using WSO2 ESB with SAP ERP (Retail)
WSO2Con2011: Using WSO2 ESB with SAP ERP (Retail)WSO2Con2011: Using WSO2 ESB with SAP ERP (Retail)
WSO2Con2011: Using WSO2 ESB with SAP ERP (Retail)
 
Spark IT 2011 - Java EE 6 Workshop
Spark IT 2011 - Java EE 6 WorkshopSpark IT 2011 - Java EE 6 Workshop
Spark IT 2011 - Java EE 6 Workshop
 
Sun Java EE 6 Overview
Sun Java EE 6 OverviewSun Java EE 6 Overview
Sun Java EE 6 Overview
 
Java EE / GlassFish Strategy & Roadmap @ JavaOne 2011
Java EE / GlassFish Strategy & Roadmap @ JavaOne 2011Java EE / GlassFish Strategy & Roadmap @ JavaOne 2011
Java EE / GlassFish Strategy & Roadmap @ JavaOne 2011
 
SD Forum 1999 XML Lessons Learned
SD Forum 1999 XML Lessons LearnedSD Forum 1999 XML Lessons Learned
SD Forum 1999 XML Lessons Learned
 
Java EE Technical Keynote - JavaOne India 2011
Java EE Technical Keynote - JavaOne India 2011Java EE Technical Keynote - JavaOne India 2011
Java EE Technical Keynote - JavaOne India 2011
 
JBoss AS7 Reloaded
JBoss AS7 ReloadedJBoss AS7 Reloaded
JBoss AS7 Reloaded
 
Java Ide Day 2008 - Presentation on JDeveloper by Paolo Ramasso
Java Ide Day 2008 - Presentation on JDeveloper by Paolo RamassoJava Ide Day 2008 - Presentation on JDeveloper by Paolo Ramasso
Java Ide Day 2008 - Presentation on JDeveloper by Paolo Ramasso
 
Florian adler minute project
Florian adler   minute projectFlorian adler   minute project
Florian adler minute project
 
Apache Camel: The Swiss Army Knife of Open Source Integration
Apache Camel: The Swiss Army Knife of Open Source IntegrationApache Camel: The Swiss Army Knife of Open Source Integration
Apache Camel: The Swiss Army Knife of Open Source Integration
 
JBoss AS / EAP and Java EE6
JBoss AS / EAP and Java EE6JBoss AS / EAP and Java EE6
JBoss AS / EAP and Java EE6
 

Kürzlich hochgeladen

Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfJayanti Pande
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
An Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdfAn Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdfSanaAli374401
 
Gardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch LetterGardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch LetterMateoGardella
 
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...KokoStevan
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDThiyagu K
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxnegromaestrong
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin ClassesCeline George
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.pptRamjanShidvankar
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsTechSoup
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAssociation for Project Management
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfAdmir Softic
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...christianmathematics
 
PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docxPoojaSen20
 
Gardella_Mateo_IntellectualProperty.pdf.
Gardella_Mateo_IntellectualProperty.pdf.Gardella_Mateo_IntellectualProperty.pdf.
Gardella_Mateo_IntellectualProperty.pdf.MateoGardella
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Disha Kariya
 

Kürzlich hochgeladen (20)

Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
An Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdfAn Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdf
 
Gardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch LetterGardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch Letter
 
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across Sectors
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
 
PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docx
 
Gardella_Mateo_IntellectualProperty.pdf.
Gardella_Mateo_IntellectualProperty.pdf.Gardella_Mateo_IntellectualProperty.pdf.
Gardella_Mateo_IntellectualProperty.pdf.
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..
 

J2ee and web services

  • 1. JAVA PLATFORMS •J2SE – Java 2 Standard Edition  Java for the desktop / workstation • •J2ME – Java 2 Micro Edition  Java for the consumer device •J2EE - Java 2 Enterprise Edition  Java for the server
  • 2. J2ee J2se J2me
  • 3. J2EE Supports • Extensible Markup Language • Web Applications • Web Services Support / WSDL Standard Format • UDDI and ebXML Standard Formats • HTTP-SOAP Transport Protocol
  • 4. •J2EE comes with a built in application server •J2EE defines Java API for XML Processing (JAXP) API for processing XML •Uses SAX and DOM standards
  • 5. •J2EE does not specify the nature and structure of the runtime. •J2EE Container – capability of the runtime to manage application components. •J2EE APIs specifies the contract between the applications and the container.
  • 6. Data JDBC RDBMS Client Application Logic JavaMail Web Container Mail Server HTML/ XML RMI Servlets JSPs J2EE RMI/IIOP JavaMail Application JDBC JNDI Server JMS IIOP JTA JAF Applet EJB Container CORBA Session Beans Entity Beans JNDI Client Applica- tion RMI/IIOP Directory Services JavaMail JDBC JNDI JMS JMS JTA JAF
  • 7. •The Component technologies – to hold the business logic. (JSP, Servlets and EJB) •The Service technologies – to provide supported services to application components (JDBC, JTA, JNDI) •The Communication technologies – transparent to appln programmer, provide the mechanism for communication among different parts of the appln. (JMS, JavaMail, RMI-IIOP) •They are re-usable software units containing business logic. • An EJB is just a collection of Java classes and an XML file, bundled into a single unit.
  • 8. • They are re-usable software units containing business logic. • An EJB is just a collection of Java classes and an XML file, bundled into a single unit. • Java classes must follow certain rules and provide certain callback methods.
  • 9. • Session Beans • Entity Beans • Message-driven Beans
  • 10. • Intended for the use of a single client. • Lifespan is limited to that of its client. • When the client leaves the web site or the application is shut down, the session bean disappears.
  • 11. Can keep information on behalf of its client across method calls. For example, Full information of the client is stored in every transactions example , credit card
  • 12. • This bean implements a particular business logic, though its created for a particular client, it doesn’t have to remember anything about the client. • Can be considered as a remote procedure that gets executed on behalf of the client, taking some parameters and returns the result (of calculation in a particular business rule context).
  • 13. •Persistence is its basic property. •It stays around even after the program is terminated until it is deleted. •When the program is restarted, it can gain access to this bean again. •It can be used by any program on the network. •It is executed remotely. •It is identified by a primary key. •Its nothing but the object representation of records in RDBMS tables.
  • 14. Advantages • J2EE provides a complete architecture for developing - Distributed systems including object persistence, session tracking, transaction management, … •Separation of technical and application-specific code - Deployment descriptors - Container Managed Persistence
  • 15. Disadvantages • Very complex technology Even simple examples require many interfaces, bean classes, deployment descriptors. • Many errors occur only at runtime (several steps required until the application is running) - Compilation - Packaging - Deployment - Running the application
  • 16. A Web Application Framework (WAF) is a reusable, skeletal, semi-complete modular platform that can be specialized to produce custom web applications , which commonly serve the web browsers via the Http's protocol. WAF usually implements the Model-View-Controller (MVC) design pattern, typically in the Model 2 architecture to develop request-response web-based applications on the Java EE and .NET models.
  • 17.
  • 18. Request-based Framework : Struts WebWork Beehive , Stripes Component-based Framework Jave Server Faces (JSF) Tapestry Wicket Hybrid – Meta Framework RIFE Spring Framework RIA-based Framework DWR Echo2 JSON-RPC-Java