SlideShare a Scribd company logo
1 of 13
Java Knowledge


                                            J2EE
(Q). What is J2EE ?

          J2EE(java 2 Enterprise Edition) is one of the three Java platform
           from sun micro system.

      Other two’s are : (1) J2SE(Java 2 Standard Edition)

                             (2) J2ME(Java 2 Mobile Edition)

          J2EE is a collection of so many Java based technologies.
          J2EE technologies broadly divided into 2 catagories
                     o Component technologies
                     o Service technologies

      Component technologies are :

                         o Servlets
                         o Jsp
                         o EJB(Enterprise java beans)

                      Servlets and jsp are known as web technologies
                      EJB is known as distributed technologies
                      A servlet and jsp are web components developed by web
                      component developers
                      EJB’s are develooped by business component developers .EJB’s
                      are knows as business components.

      Service technologies are :

                         o   JMS (Java Messaging Service)
                         o   JTS (Java Transaction Service)
                         o   JAAS (Java Authentication and autherisation Service)
                         o   JNDI (Java Naming and directory Interface)
                         o   Java Mail


                             Contact me-sumanbehara1@gmail.com
Java Knowledge




(Q). What is the purpose of J2EE ?

      J2EE is meant for distributed,transactional,multi-tier and secured
enterprise application development.

(Q). What is Tier ?

    Physical seperations of components is nothing but a tier.

(Q). What is Layer ?

    Logical seperation of components is nothingbut a layer.

(Q). What is Web-Client ?

    Web resource shake request making software is known as web-
     client
    Web-client is nothing but browser software
    Web-client is nothing but Http client because it uses Hyper text
     transfer protocol to communicate with web-client

(Q). What is Web-server ?

          A web server is a server software that comprises 2 modules
               1) Networking module(communication)
               2) IO module
          Web server is a process not a software & hardware
          Web server is also known as http server forit’s uses hiper text
           transfer protocol to communicate with browser
          Apache,IIS are 2 widely used web-servers
          Web-server process is running in which computer system,that
           is known as web-server machine

      Duties of web-server :


                      Contact me-sumanbehara1@gmail.com
Java Knowledge

         Providing Http socket connections to web-client
         Sending web-pages to the web-client
         Web-server can receive user inputs from the browser,but it
          cannot process data.it cannot be communicate to be
          database server.it cannot produce response pages to end-
          user

(Q). What is Web-container ?

         Web-Container Container is a Server software that comprise
          of 3 modules
                 Web server/http server/default handler
                 Servlet-Engine/servlet-container
                 Jsp-Engine/Jsp-container
         A web application is developed into the web container
         Installation/loading a web application into the web
          container.so that it’s services are available to the web-client
          is known as deployment.




                  Contact me-sumanbehara1@gmail.com
Java Knowledge

(Q). What is an Application Server ?

 Application server is a Server Software comprises of web container,EJB
  Container and other enterprise services. Via.JNDI naming Services
  JMS,JTS etc.,
Examples of some of Application Servers :

           Weblogic8.1 / weblogic 10
           JBoss
           Sun Server
           WebSphere(WAS from IBM)
           GlassFish
           Apache Tomcat

Different types of tiered Architecture are :
           2-tier(Client-Server) Architecture
           3-tier architecture
           N-tier Architecture
           Distributed Architecture

2-Tier (Client-Server)Architecture:

            2-tier architecture is also known as client-server architecture.
            In two tier architecture always server is the database
             server(data layer).
            In such physical and data access layer run in one machine
             which is nothing but client machine.




                       Contact me-sumanbehara1@gmail.com
Java Knowledge




            2-tier architecture:
            In a two-tier system, we have a client program and
            a server program. The main difference between the two is that the
            server responds to requests from many different clients, while the
            clients usually initiate the requests for information from a single
            server.
Dis-Advantage of 2-tier acrchitecture :

          Client side perfomance is very bad causes Fat(thick) Client




                         Contact me-sumanbehara1@gmail.com
Java Knowledge


3-tier architecture :
               Physical seperation of service layer(data access layer as
                well) from the presentation layer is nothing but 3-tier
                architecturre.
               One machine for one machine for service layer( and
                DAL also) and another machine for presentation layer
                is the actual physical seperation in this architecture.
               3-tier architecture eliminates client side
                maintainance.it also makes the clients thin
               3 tier architecture does not make the client 100% thin.




                 Contact me-sumanbehara1@gmail.com
Java Knowledge




3-tier architecture:

            Contact me-sumanbehara1@gmail.com
Java Knowledge

           A three-tier application we have a client, a server and a database,
           in which the server stores its data. The flow of information is
           still essentially linear: a request comes from the client to the
           server; the server requests or stores data in the database; the
           database returns information to the server; the server returns
           information back to the client


N-tier Architecture :

                An extension of 3-tier architecture is nothing but n-tier
                 architecture
                Service layer is one machine ;data layer in one machine;
                 presentation layer is in morethan one machine.i.e. windows
                 based enterprise application can be 3-tier architecture cannot
                 be ‘n’ tier as presentation layer runs in only one machine as
                 one process.
                Web-enabling a 3-tier architectural enterprise application is
                 nothing but making it n-tiered.




                        Contact me-sumanbehara1@gmail.com
Java Knowledge




Distributed Architecture :

              If business objects of a service layer are geographycally
               dispresed in the network and still communicating with one
               another such enterprise application is said to be distributed
               appliaction and is said to have distributed tier architecture




                       Contact me-sumanbehara1@gmail.com
Java Knowledge


(Q). What are the different programming logics of the web
application..?

     A Web Application has 3 logics

           a. Presentation Logic
           b. Business Logic
           c. Application Logic
     Code that generates input screens and representing pages for
     the end-user is known as presentation logic
     Data processing logic according to the business rules of the
     oraganisation is nothing but business logic
     Flow control logic is know as application logic

JSP –Model 1 Architecture :




Note : In this model, application logic and presentation logic is
mixed in the jsp. Only business logic is separated into the Java
bean.


                     Contact me-sumanbehara1@gmail.com
Java Knowledge


This architecture model is sufficient only for small applications
JSP –Model 2(MVC) Architecture :




     Here Presentation logic is in view, application logic in
     controller and business logic in model.
     Clear separation of 3 logics give lot of benefits in application
     development and maintenance.
(Q). what is MVC (Model-view-controller)..?

    The main aim of the MVC architecture is to separate the business logic and
       application data from the presentation data to the user.




     Model: EJB/Spring/Java Beans
     View : Jsp’s
     Controller: Servlets /Struts




                        Contact me-sumanbehara1@gmail.com
Java Knowledge




Layer’s are 4 types:
    Presentation or UI (User Interface) Layer (Struts/Jsps/JSF etc.)
     Bussiness or Service Layer (Servlets/EJB/Spring)
     Data Access Layer (ORM’s or JDBC)
     Data Layer (Database)
Example for 4 layered architecture :




                       Contact me-sumanbehara1@gmail.com
Java Knowledge




Contact me-sumanbehara1@gmail.com

More Related Content

What's hot

Java Servlet
Java ServletJava Servlet
Java ServletYoga Raja
 
Entity beans in java
Entity beans in javaEntity beans in java
Entity beans in javaAcp Jamod
 
Chapter 9 Operating Systems silberschatz
Chapter 9 Operating Systems silberschatzChapter 9 Operating Systems silberschatz
Chapter 9 Operating Systems silberschatzGiulianoRanauro
 
Java Servlets
Java ServletsJava Servlets
Java ServletsEmprovise
 
CORBA Basic and Deployment of CORBA
CORBA Basic and Deployment of CORBACORBA Basic and Deployment of CORBA
CORBA Basic and Deployment of CORBAPriyanka Patil
 
Java 9 Module System Introduction
Java 9 Module System IntroductionJava 9 Module System Introduction
Java 9 Module System IntroductionDan Stine
 
Corba introduction and simple example
Corba introduction and simple example Corba introduction and simple example
Corba introduction and simple example Alexia Wang
 
Java RMI Presentation
Java RMI PresentationJava RMI Presentation
Java RMI PresentationMasud Rahman
 
Java Threads Tutorial | Multithreading In Java Tutorial | Java Tutorial For B...
Java Threads Tutorial | Multithreading In Java Tutorial | Java Tutorial For B...Java Threads Tutorial | Multithreading In Java Tutorial | Java Tutorial For B...
Java Threads Tutorial | Multithreading In Java Tutorial | Java Tutorial For B...Edureka!
 
Network programming in java - PPT
Network programming in java - PPTNetwork programming in java - PPT
Network programming in java - PPTkamal kotecha
 
Basics of Java Concurrency
Basics of Java ConcurrencyBasics of Java Concurrency
Basics of Java Concurrencykshanth2101
 
Finalize() method
Finalize() methodFinalize() method
Finalize() methodJadavsejal
 

What's hot (20)

Applet programming
Applet programming Applet programming
Applet programming
 
Java exception
Java exception Java exception
Java exception
 
Java 8 Streams
Java 8 StreamsJava 8 Streams
Java 8 Streams
 
Java Servlet
Java ServletJava Servlet
Java Servlet
 
Entity beans in java
Entity beans in javaEntity beans in java
Entity beans in java
 
Corba
CorbaCorba
Corba
 
Chapter 9 Operating Systems silberschatz
Chapter 9 Operating Systems silberschatzChapter 9 Operating Systems silberschatz
Chapter 9 Operating Systems silberschatz
 
Java Servlets
Java ServletsJava Servlets
Java Servlets
 
CORBA Basic and Deployment of CORBA
CORBA Basic and Deployment of CORBACORBA Basic and Deployment of CORBA
CORBA Basic and Deployment of CORBA
 
Java 9 Module System Introduction
Java 9 Module System IntroductionJava 9 Module System Introduction
Java 9 Module System Introduction
 
Corba introduction and simple example
Corba introduction and simple example Corba introduction and simple example
Corba introduction and simple example
 
Java RMI Presentation
Java RMI PresentationJava RMI Presentation
Java RMI Presentation
 
Collections in Java Notes
Collections in Java NotesCollections in Java Notes
Collections in Java Notes
 
Java Threads Tutorial | Multithreading In Java Tutorial | Java Tutorial For B...
Java Threads Tutorial | Multithreading In Java Tutorial | Java Tutorial For B...Java Threads Tutorial | Multithreading In Java Tutorial | Java Tutorial For B...
Java Threads Tutorial | Multithreading In Java Tutorial | Java Tutorial For B...
 
Network programming in java - PPT
Network programming in java - PPTNetwork programming in java - PPT
Network programming in java - PPT
 
Basics of Java Concurrency
Basics of Java ConcurrencyBasics of Java Concurrency
Basics of Java Concurrency
 
Finalize() method
Finalize() methodFinalize() method
Finalize() method
 
Java RMI
Java RMIJava RMI
Java RMI
 
Jndi
JndiJndi
Jndi
 
CORBA.ppt
CORBA.pptCORBA.ppt
CORBA.ppt
 

Viewers also liked

Introduction to Java EE (J2EE)
Introduction to Java EE (J2EE)Introduction to Java EE (J2EE)
Introduction to Java EE (J2EE)Atit Patumvan
 
J2 ee architecture
J2 ee architectureJ2 ee architecture
J2 ee architectureKrishna Mer
 
Introduction in jsp & servlet
Introduction in jsp & servlet Introduction in jsp & servlet
Introduction in jsp & servlet Anas Aloklah
 
Java database connectivity
Java database connectivityJava database connectivity
Java database connectivityVaishali Modi
 
Introduction to Java Enterprise Edition
Introduction to Java Enterprise EditionIntroduction to Java Enterprise Edition
Introduction to Java Enterprise EditionAbdalla Mahmoud
 
Multi Tier Architecture
Multi Tier ArchitectureMulti Tier Architecture
Multi Tier Architecturegatigno
 
Intro to Big Data and NoSQL
Intro to Big Data and NoSQLIntro to Big Data and NoSQL
Intro to Big Data and NoSQLDon Demcsak
 
Introduction to java ee
Introduction to java eeIntroduction to java ee
Introduction to java eeRanjan Kumar
 
N tier web applications
N tier web applicationsN tier web applications
N tier web applicationsMike Feltman
 
Building N Tier Applications With Entity Framework Services 2010
Building N Tier Applications With Entity Framework Services 2010Building N Tier Applications With Entity Framework Services 2010
Building N Tier Applications With Entity Framework Services 2010David McCarter
 
remote method invocation
remote method invocationremote method invocation
remote method invocationArun Nair
 
E business n_tier_arch
E business n_tier_archE business n_tier_arch
E business n_tier_archRadiant Minds
 

Viewers also liked (20)

J2ee architecture
J2ee architectureJ2ee architecture
J2ee architecture
 
J2EE Introduction
J2EE IntroductionJ2EE Introduction
J2EE Introduction
 
Introduction to Java EE (J2EE)
Introduction to Java EE (J2EE)Introduction to Java EE (J2EE)
Introduction to Java EE (J2EE)
 
JSP
JSPJSP
JSP
 
spring
springspring
spring
 
Spring
SpringSpring
Spring
 
J2 ee architecture
J2 ee architectureJ2 ee architecture
J2 ee architecture
 
Introduction in jsp & servlet
Introduction in jsp & servlet Introduction in jsp & servlet
Introduction in jsp & servlet
 
Java database connectivity
Java database connectivityJava database connectivity
Java database connectivity
 
Introduction to Java Enterprise Edition
Introduction to Java Enterprise EditionIntroduction to Java Enterprise Edition
Introduction to Java Enterprise Edition
 
Multi Tier Architecture
Multi Tier ArchitectureMulti Tier Architecture
Multi Tier Architecture
 
Intro to Big Data and NoSQL
Intro to Big Data and NoSQLIntro to Big Data and NoSQL
Intro to Big Data and NoSQL
 
Java Server Pages
Java Server PagesJava Server Pages
Java Server Pages
 
Introduction to java ee
Introduction to java eeIntroduction to java ee
Introduction to java ee
 
N tier web applications
N tier web applicationsN tier web applications
N tier web applications
 
Building N Tier Applications With Entity Framework Services 2010
Building N Tier Applications With Entity Framework Services 2010Building N Tier Applications With Entity Framework Services 2010
Building N Tier Applications With Entity Framework Services 2010
 
Jsp
JspJsp
Jsp
 
remote method invocation
remote method invocationremote method invocation
remote method invocation
 
Jsp with mvc
Jsp with mvcJsp with mvc
Jsp with mvc
 
E business n_tier_arch
E business n_tier_archE business n_tier_arch
E business n_tier_arch
 

Similar to J2EE and layered architecture

Introduction to ejb and struts framework
Introduction to ejb and struts frameworkIntroduction to ejb and struts framework
Introduction to ejb and struts frameworks4al_com
 
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
 
Intorduction to struts
Intorduction to strutsIntorduction to struts
Intorduction to strutsAnup72
 
Enterprise application developement
Enterprise application developementEnterprise application developement
Enterprise application developementArchana Jha
 
J2ee connector architecture
J2ee connector architectureJ2ee connector architecture
J2ee connector architectureSubhasis Nayak
 
Struts natraj - satya
Struts   natraj - satyaStruts   natraj - satya
Struts natraj - satyaSatya Johnny
 
J2 EEE SIDES
J2 EEE  SIDESJ2 EEE  SIDES
J2 EEE SIDESbputhal
 
Intro in JavaEE world (TU Olomouc)
Intro in JavaEE world (TU Olomouc)Intro in JavaEE world (TU Olomouc)
Intro in JavaEE world (TU Olomouc)blahap
 
J2EE Notes JDBC database Connectiviy and Programs related to JDBC
J2EE Notes JDBC database Connectiviy and Programs related to JDBCJ2EE Notes JDBC database Connectiviy and Programs related to JDBC
J2EE Notes JDBC database Connectiviy and Programs related to JDBCChaithraCSHirematt
 
Peoplesoft PIA architecture
Peoplesoft PIA architecturePeoplesoft PIA architecture
Peoplesoft PIA architectureAmit rai Raaz
 
Ppt for Online music store
Ppt for Online music storePpt for Online music store
Ppt for Online music storeADEEBANADEEM
 
Enterprise java unit-1_chapter-2
Enterprise java unit-1_chapter-2Enterprise java unit-1_chapter-2
Enterprise java unit-1_chapter-2sandeep54552
 
enterprisejavaunit-1chapter-2-210914075956.pdf
enterprisejavaunit-1chapter-2-210914075956.pdfenterprisejavaunit-1chapter-2-210914075956.pdf
enterprisejavaunit-1chapter-2-210914075956.pdfEidTahir
 

Similar to J2EE and layered architecture (20)

Introduction to ejb and struts framework
Introduction to ejb and struts frameworkIntroduction to ejb and struts framework
Introduction to ejb and struts framework
 
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
 
J2 ee archi
J2 ee archiJ2 ee archi
J2 ee archi
 
Design patterns
Design patternsDesign patterns
Design patterns
 
Intorduction to struts
Intorduction to strutsIntorduction to struts
Intorduction to struts
 
Enterprise application developement
Enterprise application developementEnterprise application developement
Enterprise application developement
 
J2ee connector architecture
J2ee connector architectureJ2ee connector architecture
J2ee connector architecture
 
Struts natraj - satya
Struts   natraj - satyaStruts   natraj - satya
Struts natraj - satya
 
Struts natraj - satya
Struts   natraj - satyaStruts   natraj - satya
Struts natraj - satya
 
Struts notes
Struts notesStruts notes
Struts notes
 
J2 EEE SIDES
J2 EEE  SIDESJ2 EEE  SIDES
J2 EEE SIDES
 
Intro in JavaEE world (TU Olomouc)
Intro in JavaEE world (TU Olomouc)Intro in JavaEE world (TU Olomouc)
Intro in JavaEE world (TU Olomouc)
 
Rajeev_Resume
Rajeev_ResumeRajeev_Resume
Rajeev_Resume
 
J2EE Notes JDBC database Connectiviy and Programs related to JDBC
J2EE Notes JDBC database Connectiviy and Programs related to JDBCJ2EE Notes JDBC database Connectiviy and Programs related to JDBC
J2EE Notes JDBC database Connectiviy and Programs related to JDBC
 
Month 2 report
Month 2 reportMonth 2 report
Month 2 report
 
Peoplesoft PIA architecture
Peoplesoft PIA architecturePeoplesoft PIA architecture
Peoplesoft PIA architecture
 
Jdbc
JdbcJdbc
Jdbc
 
Ppt for Online music store
Ppt for Online music storePpt for Online music store
Ppt for Online music store
 
Enterprise java unit-1_chapter-2
Enterprise java unit-1_chapter-2Enterprise java unit-1_chapter-2
Enterprise java unit-1_chapter-2
 
enterprisejavaunit-1chapter-2-210914075956.pdf
enterprisejavaunit-1chapter-2-210914075956.pdfenterprisejavaunit-1chapter-2-210914075956.pdf
enterprisejavaunit-1chapter-2-210914075956.pdf
 

Recently uploaded

Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Allon Mureinik
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Alan Dix
 
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...HostedbyConfluent
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slidespraypatel2
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphNeo4j
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions
 
How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?XfilesPro
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 3652toLead Limited
 
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 WorkerThousandEyes
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 

Recently uploaded (20)

Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
 
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping Elbows
 
How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
 
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
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 

J2EE and layered architecture

  • 1. Java Knowledge J2EE (Q). What is J2EE ?  J2EE(java 2 Enterprise Edition) is one of the three Java platform from sun micro system. Other two’s are : (1) J2SE(Java 2 Standard Edition) (2) J2ME(Java 2 Mobile Edition)  J2EE is a collection of so many Java based technologies.  J2EE technologies broadly divided into 2 catagories o Component technologies o Service technologies Component technologies are : o Servlets o Jsp o EJB(Enterprise java beans) Servlets and jsp are known as web technologies EJB is known as distributed technologies A servlet and jsp are web components developed by web component developers EJB’s are develooped by business component developers .EJB’s are knows as business components. Service technologies are : o JMS (Java Messaging Service) o JTS (Java Transaction Service) o JAAS (Java Authentication and autherisation Service) o JNDI (Java Naming and directory Interface) o Java Mail Contact me-sumanbehara1@gmail.com
  • 2. Java Knowledge (Q). What is the purpose of J2EE ? J2EE is meant for distributed,transactional,multi-tier and secured enterprise application development. (Q). What is Tier ?  Physical seperations of components is nothing but a tier. (Q). What is Layer ?  Logical seperation of components is nothingbut a layer. (Q). What is Web-Client ?  Web resource shake request making software is known as web- client  Web-client is nothing but browser software  Web-client is nothing but Http client because it uses Hyper text transfer protocol to communicate with web-client (Q). What is Web-server ?  A web server is a server software that comprises 2 modules 1) Networking module(communication) 2) IO module  Web server is a process not a software & hardware  Web server is also known as http server forit’s uses hiper text transfer protocol to communicate with browser  Apache,IIS are 2 widely used web-servers  Web-server process is running in which computer system,that is known as web-server machine Duties of web-server : Contact me-sumanbehara1@gmail.com
  • 3. Java Knowledge  Providing Http socket connections to web-client  Sending web-pages to the web-client  Web-server can receive user inputs from the browser,but it cannot process data.it cannot be communicate to be database server.it cannot produce response pages to end- user (Q). What is Web-container ?  Web-Container Container is a Server software that comprise of 3 modules Web server/http server/default handler Servlet-Engine/servlet-container Jsp-Engine/Jsp-container  A web application is developed into the web container  Installation/loading a web application into the web container.so that it’s services are available to the web-client is known as deployment. Contact me-sumanbehara1@gmail.com
  • 4. Java Knowledge (Q). What is an Application Server ?  Application server is a Server Software comprises of web container,EJB Container and other enterprise services. Via.JNDI naming Services JMS,JTS etc., Examples of some of Application Servers : Weblogic8.1 / weblogic 10 JBoss Sun Server WebSphere(WAS from IBM) GlassFish Apache Tomcat Different types of tiered Architecture are : 2-tier(Client-Server) Architecture 3-tier architecture N-tier Architecture Distributed Architecture 2-Tier (Client-Server)Architecture:  2-tier architecture is also known as client-server architecture.  In two tier architecture always server is the database server(data layer).  In such physical and data access layer run in one machine which is nothing but client machine. Contact me-sumanbehara1@gmail.com
  • 5. Java Knowledge 2-tier architecture: In a two-tier system, we have a client program and a server program. The main difference between the two is that the server responds to requests from many different clients, while the clients usually initiate the requests for information from a single server. Dis-Advantage of 2-tier acrchitecture :  Client side perfomance is very bad causes Fat(thick) Client Contact me-sumanbehara1@gmail.com
  • 6. Java Knowledge 3-tier architecture :  Physical seperation of service layer(data access layer as well) from the presentation layer is nothing but 3-tier architecturre.  One machine for one machine for service layer( and DAL also) and another machine for presentation layer is the actual physical seperation in this architecture.  3-tier architecture eliminates client side maintainance.it also makes the clients thin  3 tier architecture does not make the client 100% thin. Contact me-sumanbehara1@gmail.com
  • 7. Java Knowledge 3-tier architecture: Contact me-sumanbehara1@gmail.com
  • 8. Java Knowledge A three-tier application we have a client, a server and a database, in which the server stores its data. The flow of information is still essentially linear: a request comes from the client to the server; the server requests or stores data in the database; the database returns information to the server; the server returns information back to the client N-tier Architecture :  An extension of 3-tier architecture is nothing but n-tier architecture  Service layer is one machine ;data layer in one machine; presentation layer is in morethan one machine.i.e. windows based enterprise application can be 3-tier architecture cannot be ‘n’ tier as presentation layer runs in only one machine as one process.  Web-enabling a 3-tier architectural enterprise application is nothing but making it n-tiered. Contact me-sumanbehara1@gmail.com
  • 9. Java Knowledge Distributed Architecture :  If business objects of a service layer are geographycally dispresed in the network and still communicating with one another such enterprise application is said to be distributed appliaction and is said to have distributed tier architecture Contact me-sumanbehara1@gmail.com
  • 10. Java Knowledge (Q). What are the different programming logics of the web application..? A Web Application has 3 logics a. Presentation Logic b. Business Logic c. Application Logic Code that generates input screens and representing pages for the end-user is known as presentation logic Data processing logic according to the business rules of the oraganisation is nothing but business logic Flow control logic is know as application logic JSP –Model 1 Architecture : Note : In this model, application logic and presentation logic is mixed in the jsp. Only business logic is separated into the Java bean. Contact me-sumanbehara1@gmail.com
  • 11. Java Knowledge This architecture model is sufficient only for small applications JSP –Model 2(MVC) Architecture : Here Presentation logic is in view, application logic in controller and business logic in model. Clear separation of 3 logics give lot of benefits in application development and maintenance. (Q). what is MVC (Model-view-controller)..? The main aim of the MVC architecture is to separate the business logic and application data from the presentation data to the user. Model: EJB/Spring/Java Beans View : Jsp’s Controller: Servlets /Struts Contact me-sumanbehara1@gmail.com
  • 12. Java Knowledge Layer’s are 4 types: Presentation or UI (User Interface) Layer (Struts/Jsps/JSF etc.) Bussiness or Service Layer (Servlets/EJB/Spring) Data Access Layer (ORM’s or JDBC) Data Layer (Database) Example for 4 layered architecture : Contact me-sumanbehara1@gmail.com