SlideShare a Scribd company logo
1 of 27
Sapana Mehta (CS-6V81)
Overview Of J2EE & JBoss
Sapana Mehta
Sapana Mehta (CS-6V81)
Past History
 Initially two tier architecture (client
server applications)
 Client is responsible for data access
applying business logic and
presentation of data
 Only service provided by Server was
that of database server.
Sapana Mehta (CS-6V81)
Two Tier Application
Architecture
Client Server
Sapana Mehta (CS-6V81)
Two Tier Application
Architecture
 Drawbacks
- Easy to deploy but difficult to enchance
or upgrade.
- It makes reuse of business and
presentation logic difficult
- Not scalable and not suited for internet
Sapana Mehta (CS-6V81)
Java 2 Platform Enterprise
Edition(J2EE)
J2EE is an architecture for implementing
enterprise class applications using Java
and Internet Technology
- Solves problems of two tier architecture
Sapana Mehta (CS-6V81)
J2EE
 To develop n tier application
 It supports the development of a
variety of application types
 small client server systems
 Systems running on Intranets
 Systems on large scale internet e-
commerce site
Sapana Mehta (CS-6V81)
J2EE Features
 Component based model
 Container provided services
 Highly Scaleable
 Simplified Architecture
 Flexible security model
Sapana Mehta (CS-6V81)
Java: Foundation for J2EE
 J2EE is an application of java
 Write once and deploy the code into
any platform
Sapana Mehta (CS-6V81)
J2EE Components & Services
 Primary technologies
- Servlets
- JavaServer Pages (JSP)
- Enterprise JavaBeans (EJB)
 Standard services & supporting technologies
- Java database connectivity(JDBC) data access API
- Remote Method Invocations (RMI)
- Extensible Markup Languages(XML)
- JavaIDL
- JavaMail
Sapana Mehta (CS-6V81)
J2EE Tiers
 Client Presentation
 HTML or Java applets deployed in Browser
 XML documentations transmitted through
HTTP
 Java clients running in Client Java Virtual
Machine (JVM)
• Presentation Logic
 Servlets or JavaServer Pages running in
web server
• Application Logic
 Enterprise JavaBeans running in Server
Sapana Mehta (CS-6V81)
J2EE Application Model
 Browser is able to process HTML and
applets pages.
 It forwards requests to the web server,
which has JSPs and Servlets
 Servlets and JSPs may access EJB
server.
 Java Standalone runs on java client,
which access EJB server using RMI.
Sapana Mehta (CS-6V81)
J2EE Application Model
Sapana Mehta (CS-6V81)
Enterprise Java Beans (EJBs)
 Enterprise Java beans architecture is a component
model for development and deployment of
distributed business application.
 Entity Beans
 Represent persistent business Entity
 Persisted in storage system ( usually Database)
 Might contain Application logic intrinsic to entity
• Session Beans
 Perform work for individual clients on the server
 Encapsulate complex business logic
 Can coordinate transactional work on multiple entity
beans
Sapana Mehta (CS-6V81)
States and Persistence
 Session beans can be
 Stateless- belong to client for duration of a
method call
 Stateful- belong to client for duration of client
conversation
 Entity beans can have
 Bean-managed persistence- The developer writes
SQL code to retrieve,store and update database
 Container managed persistence- The developer
provide database mapping information that allows
the container to manage persistence
Sapana Mehta (CS-6V81)
Example of EJB Application
 It consists of number of clients accessing
session beans and entity beans
 Each Session bean provides specialized
processing on behalf of client
e.g. Travel Agent session bean makes travel
reservations while Flight Scheduler bean
schedules planes to fly on various routes.
 Each Entity Bean represent different type of
business entity.
e.g.Passengers, seats, planes, flights are entity
beans
Sapana Mehta (CS-6V81)
Example EJB Application
Sapana Mehta (CS-6V81)
Overview of Servlets
 Are container managed web components
 Replace Common Gateway Interface(CGI) or
Active Server Pages (ASP)
 Generate dynamic response to requests from
web based clients
 Synchronize multiple concurrent client
request
 Serve as client proxies
Sapana Mehta (CS-6V81)
Servlet Operation
 Server is Java program that runs as
separate thread inside servlet container.
 Servlet container is part of web server
 It interact with web client using
response request paradigm
Sapana Mehta (CS-6V81)
JavaServer Pages (JSP)
 Text based documents describe how to
process a request and create a
response
 Contains HTML or XML and other JSP
elements defined by JSP specification.
 Are Installed on web server
 are web components that sits on top of
java servlet mode.
Sapana Mehta (CS-6V81)
JSP Advantages
 Performance
 Runtime characteristics of servlets
 Automatic recompilation of modified pages
 Server side processing
 Programming
 Emphasize use of reusable components
 Write Once , Run Anywhere properties
 Extensible through custom tag libraries
 Provides front end access mechanism to
EJBs
Sapana Mehta (CS-6V81)
Parts of JSP Pages
Directive
<%@ pageimport=“java.util.”, MVCApp.Cart, MVCApp.CartItem” %>
Declaration
<%! Iterator it = null; CartItem ci = null; Vector cpi = null;%>
Raw HTML
<html><head><title>Shopping Cart</title></head></html>
Action
<jsp:usebean id =“Cart” scope = “session” class = “MVCApp.Cart”/>
Scriplets
%
Cpi = cart.getCartItems ( );
it = cpi.iterator();
While (it.hasNext()){ci= (Cart Item)it.next();
%>
Sapana Mehta (CS-6V81)
Parts of JSP Pages
 Expression
<td<% = ci.getTitle() %></td>
<td align =“right”><%=ci.getQuantity()%></td>
 Implicit Objects
<% string action = request.getParameter(“action”) ; %>
Sapana Mehta (CS-6V81)
JBoss- J2EE Product
FIND OUT MORE ABOUT
TODAY’S MOST SUCCESSFUL OPEN
SOURCE- DEVELOPED APPLICATION
SERVER
Sapana Mehta (CS-6V81)
What is JBoss
 Created in 1999, JBoss is the product of an
OpenSource developer community dedicated
to developing the best J2EE-compliant
application server in the market
 With 1000 developers worldwide and a
steadily growing number of downloads per
month, reaching 72,000 for October ’01 (per
independent www.sourceforge.net), JBoss is
arguably the most downloaded application
server in the world today
 Distributed under an LGPL license, JBoss is
absolutely FREE for use. No cost. Period.
Sapana Mehta (CS-6V81)
What is Application Server
 Application servers enable the development
of multi-tiered distributed applications.
They are also called “middleware”
 An application server acts as the interface
between the database(s), the web servers
and the client browsers
Sapana Mehta (CS-6V81)
JBoss- Application Server
Sapana Mehta (CS-6V81)
Conclusion
“First they ignore you
Then they laugh at you
Then they fight you
Then you win”
-- Mahatma Gandhi

More Related Content

What's hot

Customizations in Enterprise Applications using Oracle ADF
Customizations in Enterprise Applications using Oracle ADFCustomizations in Enterprise Applications using Oracle ADF
Customizations in Enterprise Applications using Oracle ADFRohan Walia
 
Jdbc architecture and driver types ppt
Jdbc architecture and driver types pptJdbc architecture and driver types ppt
Jdbc architecture and driver types pptkamal kotecha
 
J2EE PPT --CINTHIYA.M Krishnammal college for women
J2EE PPT --CINTHIYA.M Krishnammal college for womenJ2EE PPT --CINTHIYA.M Krishnammal college for women
J2EE PPT --CINTHIYA.M Krishnammal college for womenlissa cidhi
 
Securing JSF Applications Against the OWASP Top Ten
Securing JSF Applications Against the OWASP Top TenSecuring JSF Applications Against the OWASP Top Ten
Securing JSF Applications Against the OWASP Top TenDavid Chandler
 
Ankara JUG Ağustos 2013 - Oracle ADF
Ankara JUG Ağustos 2013 - Oracle ADFAnkara JUG Ağustos 2013 - Oracle ADF
Ankara JUG Ağustos 2013 - Oracle ADFAnkara JUG
 
A guide to ADF fusion development
A guide to ADF fusion developmentA guide to ADF fusion development
A guide to ADF fusion developmentDataNext Solutions
 
Running ADF Faces on Tablets and Mobile Phones
Running ADF Faces on Tablets and Mobile PhonesRunning ADF Faces on Tablets and Mobile Phones
Running ADF Faces on Tablets and Mobile PhonesSteven Davelaar
 
Introduction to Oracle ADF Task Flows
Introduction to Oracle ADF Task FlowsIntroduction to Oracle ADF Task Flows
Introduction to Oracle ADF Task FlowsRohan Walia
 
Java- JDBC- Mazenet Solution
Java- JDBC- Mazenet SolutionJava- JDBC- Mazenet Solution
Java- JDBC- Mazenet SolutionMazenetsolution
 
Developing Next-Gen Enterprise Web Application
Developing Next-Gen Enterprise Web ApplicationDeveloping Next-Gen Enterprise Web Application
Developing Next-Gen Enterprise Web ApplicationMark Gu
 
Basic Java Database Connectivity(JDBC)
Basic Java Database Connectivity(JDBC)Basic Java Database Connectivity(JDBC)
Basic Java Database Connectivity(JDBC)suraj pandey
 
oracle oa framework training | oracle oa framework training courses | oa fram...
oracle oa framework training | oracle oa framework training courses | oa fram...oracle oa framework training | oracle oa framework training courses | oa fram...
oracle oa framework training | oracle oa framework training courses | oa fram...Nancy Thomas
 

What's hot (20)

Customizations in Enterprise Applications using Oracle ADF
Customizations in Enterprise Applications using Oracle ADFCustomizations in Enterprise Applications using Oracle ADF
Customizations in Enterprise Applications using Oracle ADF
 
Extensions in OAF
Extensions in OAF Extensions in OAF
Extensions in OAF
 
Oracle ADF Case Study
Oracle ADF Case StudyOracle ADF Case Study
Oracle ADF Case Study
 
Oracle ADF 11g Tutorial
Oracle ADF 11g TutorialOracle ADF 11g Tutorial
Oracle ADF 11g Tutorial
 
37727897 Oaf Basics
37727897 Oaf Basics37727897 Oaf Basics
37727897 Oaf Basics
 
Jdbc architecture and driver types ppt
Jdbc architecture and driver types pptJdbc architecture and driver types ppt
Jdbc architecture and driver types ppt
 
J2EE PPT --CINTHIYA.M Krishnammal college for women
J2EE PPT --CINTHIYA.M Krishnammal college for womenJ2EE PPT --CINTHIYA.M Krishnammal college for women
J2EE PPT --CINTHIYA.M Krishnammal college for women
 
Securing JSF Applications Against the OWASP Top Ten
Securing JSF Applications Against the OWASP Top TenSecuring JSF Applications Against the OWASP Top Ten
Securing JSF Applications Against the OWASP Top Ten
 
Ankara JUG Ağustos 2013 - Oracle ADF
Ankara JUG Ağustos 2013 - Oracle ADFAnkara JUG Ağustos 2013 - Oracle ADF
Ankara JUG Ağustos 2013 - Oracle ADF
 
A guide to ADF fusion development
A guide to ADF fusion developmentA guide to ADF fusion development
A guide to ADF fusion development
 
Overview Of JDBC
Overview Of JDBCOverview Of JDBC
Overview Of JDBC
 
Running ADF Faces on Tablets and Mobile Phones
Running ADF Faces on Tablets and Mobile PhonesRunning ADF Faces on Tablets and Mobile Phones
Running ADF Faces on Tablets and Mobile Phones
 
Introduction to Oracle ADF Task Flows
Introduction to Oracle ADF Task FlowsIntroduction to Oracle ADF Task Flows
Introduction to Oracle ADF Task Flows
 
Java- JDBC- Mazenet Solution
Java- JDBC- Mazenet SolutionJava- JDBC- Mazenet Solution
Java- JDBC- Mazenet Solution
 
מתפ
מתפמתפ
מתפ
 
Oracle application framework (oaf) online training
Oracle application framework (oaf) online trainingOracle application framework (oaf) online training
Oracle application framework (oaf) online training
 
Developing Next-Gen Enterprise Web Application
Developing Next-Gen Enterprise Web ApplicationDeveloping Next-Gen Enterprise Web Application
Developing Next-Gen Enterprise Web Application
 
Jdbc
JdbcJdbc
Jdbc
 
Basic Java Database Connectivity(JDBC)
Basic Java Database Connectivity(JDBC)Basic Java Database Connectivity(JDBC)
Basic Java Database Connectivity(JDBC)
 
oracle oa framework training | oracle oa framework training courses | oa fram...
oracle oa framework training | oracle oa framework training courses | oa fram...oracle oa framework training | oracle oa framework training courses | oa fram...
oracle oa framework training | oracle oa framework training courses | oa fram...
 

Similar to 2.j2 ee overview

J2EE and Servlet
J2EE and Servlet J2EE and Servlet
J2EE and Servlet Rishikesh .
 
J2EE - JSP-Servlet- Container - Components
J2EE - JSP-Servlet- Container - ComponentsJ2EE - JSP-Servlet- Container - Components
J2EE - JSP-Servlet- Container - ComponentsKaml Sah
 
The Web Framework Dream Team
The Web Framework Dream TeamThe Web Framework Dream Team
The Web Framework Dream TeamJohan Eltes
 
Introduction to ejb and struts framework
Introduction to ejb and struts frameworkIntroduction to ejb and struts framework
Introduction to ejb and struts frameworks4al_com
 
J2EE Architecture Explained
J2EE  Architecture ExplainedJ2EE  Architecture Explained
J2EE Architecture ExplainedAdarsh Kr Sinha
 
JSP - Java Server Page
JSP - Java Server PageJSP - Java Server Page
JSP - Java Server PageVipin Yadav
 
Enterprise application developement
Enterprise application developementEnterprise application developement
Enterprise application developementArchana Jha
 
Web Component Development with Servlet and JSP Technologies Unit 01
Web Component Development with Servlet and JSP Technologies Unit 01Web Component Development with Servlet and JSP Technologies Unit 01
Web Component Development with Servlet and JSP Technologies Unit 01Prashanth Shivakumar
 
Introduction to JSP pages
Introduction to JSP pagesIntroduction to JSP pages
Introduction to JSP pagesFulvio Corno
 
Advance Java Topics (J2EE)
Advance Java Topics (J2EE)Advance Java Topics (J2EE)
Advance Java Topics (J2EE)slire
 
Web programming and development - Introduction
Web programming and development - IntroductionWeb programming and development - Introduction
Web programming and development - IntroductionJoel Briza
 
Introduction to ASP.NET
Introduction to ASP.NETIntroduction to ASP.NET
Introduction to ASP.NETPeter Gfader
 
Bt0083, server side programming theory
Bt0083, server side programming theoryBt0083, server side programming theory
Bt0083, server side programming theorysmumbahelp
 
Introduction to java ee
Introduction to java eeIntroduction to java ee
Introduction to java eeRanjan Kumar
 
PPT on javascript ajax and css and some points related to server
PPT on javascript ajax and css and some points related to serverPPT on javascript ajax and css and some points related to server
PPT on javascript ajax and css and some points related to servershivanichourasia01
 
## Introducing a reactive Scala-Akka based system in a Java centric company
## Introducing a reactive Scala-Akka based system in a Java centric company## Introducing a reactive Scala-Akka based system in a Java centric company
## Introducing a reactive Scala-Akka based system in a Java centric companyMilan Aleksić
 
java Servlet technology
java Servlet technologyjava Servlet technology
java Servlet technologyTanmoy Barman
 

Similar to 2.j2 ee overview (20)

J2EE and Servlet
J2EE and Servlet J2EE and Servlet
J2EE and Servlet
 
MVC
MVCMVC
MVC
 
AJppt.pptx
AJppt.pptxAJppt.pptx
AJppt.pptx
 
J2EE - JSP-Servlet- Container - Components
J2EE - JSP-Servlet- Container - ComponentsJ2EE - JSP-Servlet- Container - Components
J2EE - JSP-Servlet- Container - Components
 
The Web Framework Dream Team
The Web Framework Dream TeamThe Web Framework Dream Team
The Web Framework Dream Team
 
Introduction to ejb and struts framework
Introduction to ejb and struts frameworkIntroduction to ejb and struts framework
Introduction to ejb and struts framework
 
J2EE Architecture Explained
J2EE  Architecture ExplainedJ2EE  Architecture Explained
J2EE Architecture Explained
 
JSP - Java Server Page
JSP - Java Server PageJSP - Java Server Page
JSP - Java Server Page
 
Enterprise application developement
Enterprise application developementEnterprise application developement
Enterprise application developement
 
Web Component Development with Servlet and JSP Technologies Unit 01
Web Component Development with Servlet and JSP Technologies Unit 01Web Component Development with Servlet and JSP Technologies Unit 01
Web Component Development with Servlet and JSP Technologies Unit 01
 
Introduction to JSP pages
Introduction to JSP pagesIntroduction to JSP pages
Introduction to JSP pages
 
Advance Java Topics (J2EE)
Advance Java Topics (J2EE)Advance Java Topics (J2EE)
Advance Java Topics (J2EE)
 
Java EE 7 introduction
Java EE 7  introductionJava EE 7  introduction
Java EE 7 introduction
 
Web programming and development - Introduction
Web programming and development - IntroductionWeb programming and development - Introduction
Web programming and development - Introduction
 
Introduction to ASP.NET
Introduction to ASP.NETIntroduction to ASP.NET
Introduction to ASP.NET
 
Bt0083, server side programming theory
Bt0083, server side programming theoryBt0083, server side programming theory
Bt0083, server side programming theory
 
Introduction to java ee
Introduction to java eeIntroduction to java ee
Introduction to java ee
 
PPT on javascript ajax and css and some points related to server
PPT on javascript ajax and css and some points related to serverPPT on javascript ajax and css and some points related to server
PPT on javascript ajax and css and some points related to server
 
## Introducing a reactive Scala-Akka based system in a Java centric company
## Introducing a reactive Scala-Akka based system in a Java centric company## Introducing a reactive Scala-Akka based system in a Java centric company
## Introducing a reactive Scala-Akka based system in a Java centric company
 
java Servlet technology
java Servlet technologyjava Servlet technology
java Servlet technology
 

Recently uploaded

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
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docxPoojaSen20
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Educationpboyjonauth
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsKarinaGenton
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxOH TEIK BIN
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxmanuelaromero2013
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesFatimaKhan178732
 
Micromeritics - Fundamental and Derived Properties of Powders
Micromeritics - Fundamental and Derived Properties of PowdersMicromeritics - Fundamental and Derived Properties of Powders
Micromeritics - Fundamental and Derived Properties of PowdersChitralekhaTherkar
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxSayali Powar
 
MENTAL STATUS EXAMINATION format.docx
MENTAL     STATUS EXAMINATION format.docxMENTAL     STATUS EXAMINATION format.docx
MENTAL STATUS EXAMINATION format.docxPoojaSen20
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3JemimahLaneBuaron
 

Recently uploaded (20)

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 ...
 
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docx
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its Characteristics
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptx
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptx
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and Actinides
 
Micromeritics - Fundamental and Derived Properties of Powders
Micromeritics - Fundamental and Derived Properties of PowdersMicromeritics - Fundamental and Derived Properties of Powders
Micromeritics - Fundamental and Derived Properties of Powders
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
 
MENTAL STATUS EXAMINATION format.docx
MENTAL     STATUS EXAMINATION format.docxMENTAL     STATUS EXAMINATION format.docx
MENTAL STATUS EXAMINATION format.docx
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3
 

2.j2 ee overview

  • 1. Sapana Mehta (CS-6V81) Overview Of J2EE & JBoss Sapana Mehta
  • 2. Sapana Mehta (CS-6V81) Past History  Initially two tier architecture (client server applications)  Client is responsible for data access applying business logic and presentation of data  Only service provided by Server was that of database server.
  • 3. Sapana Mehta (CS-6V81) Two Tier Application Architecture Client Server
  • 4. Sapana Mehta (CS-6V81) Two Tier Application Architecture  Drawbacks - Easy to deploy but difficult to enchance or upgrade. - It makes reuse of business and presentation logic difficult - Not scalable and not suited for internet
  • 5. Sapana Mehta (CS-6V81) Java 2 Platform Enterprise Edition(J2EE) J2EE is an architecture for implementing enterprise class applications using Java and Internet Technology - Solves problems of two tier architecture
  • 6. Sapana Mehta (CS-6V81) J2EE  To develop n tier application  It supports the development of a variety of application types  small client server systems  Systems running on Intranets  Systems on large scale internet e- commerce site
  • 7. Sapana Mehta (CS-6V81) J2EE Features  Component based model  Container provided services  Highly Scaleable  Simplified Architecture  Flexible security model
  • 8. Sapana Mehta (CS-6V81) Java: Foundation for J2EE  J2EE is an application of java  Write once and deploy the code into any platform
  • 9. Sapana Mehta (CS-6V81) J2EE Components & Services  Primary technologies - Servlets - JavaServer Pages (JSP) - Enterprise JavaBeans (EJB)  Standard services & supporting technologies - Java database connectivity(JDBC) data access API - Remote Method Invocations (RMI) - Extensible Markup Languages(XML) - JavaIDL - JavaMail
  • 10. Sapana Mehta (CS-6V81) J2EE Tiers  Client Presentation  HTML or Java applets deployed in Browser  XML documentations transmitted through HTTP  Java clients running in Client Java Virtual Machine (JVM) • Presentation Logic  Servlets or JavaServer Pages running in web server • Application Logic  Enterprise JavaBeans running in Server
  • 11. Sapana Mehta (CS-6V81) J2EE Application Model  Browser is able to process HTML and applets pages.  It forwards requests to the web server, which has JSPs and Servlets  Servlets and JSPs may access EJB server.  Java Standalone runs on java client, which access EJB server using RMI.
  • 12. Sapana Mehta (CS-6V81) J2EE Application Model
  • 13. Sapana Mehta (CS-6V81) Enterprise Java Beans (EJBs)  Enterprise Java beans architecture is a component model for development and deployment of distributed business application.  Entity Beans  Represent persistent business Entity  Persisted in storage system ( usually Database)  Might contain Application logic intrinsic to entity • Session Beans  Perform work for individual clients on the server  Encapsulate complex business logic  Can coordinate transactional work on multiple entity beans
  • 14. Sapana Mehta (CS-6V81) States and Persistence  Session beans can be  Stateless- belong to client for duration of a method call  Stateful- belong to client for duration of client conversation  Entity beans can have  Bean-managed persistence- The developer writes SQL code to retrieve,store and update database  Container managed persistence- The developer provide database mapping information that allows the container to manage persistence
  • 15. Sapana Mehta (CS-6V81) Example of EJB Application  It consists of number of clients accessing session beans and entity beans  Each Session bean provides specialized processing on behalf of client e.g. Travel Agent session bean makes travel reservations while Flight Scheduler bean schedules planes to fly on various routes.  Each Entity Bean represent different type of business entity. e.g.Passengers, seats, planes, flights are entity beans
  • 17. Sapana Mehta (CS-6V81) Overview of Servlets  Are container managed web components  Replace Common Gateway Interface(CGI) or Active Server Pages (ASP)  Generate dynamic response to requests from web based clients  Synchronize multiple concurrent client request  Serve as client proxies
  • 18. Sapana Mehta (CS-6V81) Servlet Operation  Server is Java program that runs as separate thread inside servlet container.  Servlet container is part of web server  It interact with web client using response request paradigm
  • 19. Sapana Mehta (CS-6V81) JavaServer Pages (JSP)  Text based documents describe how to process a request and create a response  Contains HTML or XML and other JSP elements defined by JSP specification.  Are Installed on web server  are web components that sits on top of java servlet mode.
  • 20. Sapana Mehta (CS-6V81) JSP Advantages  Performance  Runtime characteristics of servlets  Automatic recompilation of modified pages  Server side processing  Programming  Emphasize use of reusable components  Write Once , Run Anywhere properties  Extensible through custom tag libraries  Provides front end access mechanism to EJBs
  • 21. Sapana Mehta (CS-6V81) Parts of JSP Pages Directive <%@ pageimport=“java.util.”, MVCApp.Cart, MVCApp.CartItem” %> Declaration <%! Iterator it = null; CartItem ci = null; Vector cpi = null;%> Raw HTML <html><head><title>Shopping Cart</title></head></html> Action <jsp:usebean id =“Cart” scope = “session” class = “MVCApp.Cart”/> Scriplets % Cpi = cart.getCartItems ( ); it = cpi.iterator(); While (it.hasNext()){ci= (Cart Item)it.next(); %>
  • 22. Sapana Mehta (CS-6V81) Parts of JSP Pages  Expression <td<% = ci.getTitle() %></td> <td align =“right”><%=ci.getQuantity()%></td>  Implicit Objects <% string action = request.getParameter(“action”) ; %>
  • 23. Sapana Mehta (CS-6V81) JBoss- J2EE Product FIND OUT MORE ABOUT TODAY’S MOST SUCCESSFUL OPEN SOURCE- DEVELOPED APPLICATION SERVER
  • 24. Sapana Mehta (CS-6V81) What is JBoss  Created in 1999, JBoss is the product of an OpenSource developer community dedicated to developing the best J2EE-compliant application server in the market  With 1000 developers worldwide and a steadily growing number of downloads per month, reaching 72,000 for October ’01 (per independent www.sourceforge.net), JBoss is arguably the most downloaded application server in the world today  Distributed under an LGPL license, JBoss is absolutely FREE for use. No cost. Period.
  • 25. Sapana Mehta (CS-6V81) What is Application Server  Application servers enable the development of multi-tiered distributed applications. They are also called “middleware”  An application server acts as the interface between the database(s), the web servers and the client browsers
  • 26. Sapana Mehta (CS-6V81) JBoss- Application Server
  • 27. Sapana Mehta (CS-6V81) Conclusion “First they ignore you Then they laugh at you Then they fight you Then you win” -- Mahatma Gandhi