SlideShare a Scribd company logo
1 of 57
Introduction to Java EE (J2EE)




                          Introduction to Java EE (J2EE)


                                               Atit Patumvan, Lecturer
                                               Faculty of Management and Information Sciences
                                               Naresuan University




Atit Patumvan, Faculty of Management and Information Sciences, Naresuan University.
2
Introduction to Java EE (J2EE)



                  Model View Controller Design Pattern
      ●   MVC is an acronym for Model View Controller
      ●   MVC pattern separates the modeling of the domain, the presentation,
          and the actions based on user input into three separate classes
      ●   Very popular, used extensively in Java and other languages.




Atit Patumvan, Faculty of Management and Information Sciences, Naresuan University.
3
Introduction to Java EE (J2EE)



                                   Core Elements of MVC
      ●   Model: Contains the data model and all information that identifes
          the state of the application. It is generally self-consistent and
          independent of the other elements.
      ●   View: Stands on the other side in respect to the model and defnes
          the representation of the data stored in the model. The view is
          commonly identifed as your application's user interface (or GUI) or, in
          case of Web applications, the browser Webpage.
      ●   Controller: Represents the application logic. Here, it is defned how
          the user can interact with the application and how user actions are
          mapped to model changes

Atit Patumvan, Faculty of Management and Information Sciences, Naresuan University.
4
Introduction to Java EE (J2EE)



                                 Standard MVC Structure


                                                     Controller


     notifies user interaction                                                    Handles model updates




                       View                                                             Model


                                                 Update the views
                                                 on model changes



Atit Patumvan, Faculty of Management and Information Sciences, Naresuan University.
5
Introduction to Java EE (J2EE)




                                                     Demo




Atit Patumvan, Faculty of Management and Information Sciences, Naresuan University.
6
Introduction to Java EE (J2EE)




                                           What is J2EE?




Atit Patumvan, Faculty of Management and Information Sciences, Naresuan University.
7
Introduction to Java EE (J2EE)



                                        The Java Platform




Atit Patumvan, Faculty of Management and Information Sciences, Naresuan University.
8
Introduction to Java EE (J2EE)



                                        The Java Platform
         Optional
        Packages
                              Optional
                             Packages

                                                                                 J2ME
                                                       CDC
           J2EE
                                 J2EE         Foundation Profile          MID Profile

                                                       CDC                   CLDC       Java Card API

           Java Virtual Machine                        CVM                    KVM         CardVM




Atit Patumvan, Faculty of Management and Information Sciences, Naresuan University.
9
Introduction to Java EE (J2EE)



                                          What is the J2EE
      ●   Open and standard based platform for
           ●   Developing, deploying and managing
           ●   N-tier, Web enabled, server-centric, and component based enterprise
               application




Atit Patumvan, Faculty of Management and Information Sciences, Naresuan University.
10
Introduction to Java EE (J2EE)



                                    What Makes Up J2EE?
      ●   API and Technology                                       J2EE
                                                                    J2EE                         J2EE
                                                                                                  J2EE
                                                                   Specification             Reference
          specifcations                                             Specification             Reference
                                                                                        Implementation
                                                                                         Implementation
      ●   Development and Deployment
          Platform                                                                    J2EE

      ●   Standard and production-
          quality implementation                                   J2EE
                                                                    J2EE                             J2EE
                                                                                                      J2EE
                                                                   Compatibility
                                                                    Compatibility              Application
                                                                                                Application
      ●   Compatibility Test Suite (CTS)                           Test
                                                                    Test
                                                                   Suite
                                                                                             Programming
                                                                                              Programming
                                                                                                    Model
                                                                    Suite                            Model
      ●   J2EE brand
      ●   J2EE blueprint
      ●   Sample Code
Atit Patumvan, Faculty of Management and Information Sciences, Naresuan University.
11
Introduction to Java EE (J2EE)



                             Open and Standard Solution
      ●   Use “component and container” model in which container provides
          system services in a-well defned as an industrial standard
      ●   J2EE is that standard that also provides portability of code because it
          is based on Java technology and standard-based Java programming
          APIs




Atit Patumvan, Faculty of Management and Information Sciences, Naresuan University.
12
Introduction to Java EE (J2EE)



                             Platform Value to Developer
      ●   Can use any J2EE implementation for development and deployment
      ●   Vast amount of J2EE community resources
      ●   Can use off-the-shelf 3rd party business components




Atit Patumvan, Faculty of Management and Information Sciences, Naresuan University.
13
Introduction to Java EE (J2EE)



                                 Platform Value to Vendors
      ●   Vendors work together on specifcations and then complete in
          implementation
           ●   Scalability, Performance, Reliability, Availability, Management and
               development tools, and so on
      ●   Freedom to innovate while maintaining the portability of application
      ●   Do not have to create and maintain their own proprietary API




Atit Patumvan, Faculty of Management and Information Sciences, Naresuan University.
14
Introduction to Java EE (J2EE)



                  Platform Value to Business Customers
      ●   Many implementation choices are possible based on various
          requirements
           ●   Price (Free to high-end), scalability (single CPU to clustered model),
               reliability, performance, tools and more
           ●   Best of breed of application and platforms
      ●   Large developer pool




Atit Patumvan, Faculty of Management and Information Sciences, Naresuan University.
15
Introduction to Java EE (J2EE)




                                 J2EE API and Technologies




Atit Patumvan, Faculty of Management and Information Sciences, Naresuan University.
16
Introduction to Java EE (J2EE)



                         J2EE 1.4 APIs and Technologies
      ●   J2SE 1.4 (Improved)                                 ●   Servlet 2.4
      ●   JAX-RPC (new)                                       ●   JSP 2.0
      ●   Web Services for J2EE                               ●   EJB 2.1
      ●   J2EE Management                                     ●   JAXR
      ●   J2EE Deployment                                     ●   Connector 1.5
      ●   JMX 1.1                                             ●   JACC
      ●   JMS 1.1                                             ●   JAXP 1.2
      ●   JTA 1.0                                             ●   JavaMail 1.3
                                                              ●   JAF 1.0
Atit Patumvan, Faculty of Management and Information Sciences, Naresuan University.
17
Introduction to Java EE (J2EE)



                                                  Java EE 5
      ●   JAX-WS 2.0 & JSR 181
      ●   Java Persistence
      ●   EJB 3.0
      ●   JAXB 2.0
      ●   JavaServer Face 1.2 – new to Platform
      ●   JSP 2.1 – Unifcation with JFS 1.2
      ●   StAX – Pull Parser – new to Platform



Atit Patumvan, Faculty of Management and Information Sciences, Naresuan University.
18
Introduction to Java EE (J2EE)



                                        J2EE Components




Atit Patumvan, Faculty of Management and Information Sciences, Naresuan University.
19
Introduction to Java EE (J2EE)




                                              Java Servlet




Atit Patumvan, Faculty of Management and Information Sciences, Naresuan University.
20
Introduction to Java EE (J2EE)



                                     What is Java Servlets
      ●   Servlets are the Java Platform technology of choice for extending and
           enhancing web server.
      ●   Servlets provide a component-based, platform-independent method
          for building web-based, without the performance limitation of CGI
          Programming.
           Request CGI1
                                                                               Child for CGI1
           Request CGI2                     CGI                                Child for CGI2
                                      Based Webserver
           Request CGI1                                                        Child for CGI1

           Request Servlet1          Servlet Based Server
           Request Servlet2                                                       Servlet1
                                                JVM
           Request Servlet1                                                       Servlet2

Atit Patumvan, Faculty of Management and Information Sciences, Naresuan University.
21
Introduction to Java EE (J2EE)



                                              Java Servlets
      ●   Servlets have access to entire family of Java APIs, including the JDBC
          to access enterprise databases.
      ●   Servlet can also access a library of HTTP Specifc call and receive all
          the benefts of mature Java language, including portability,
          performance, reuseability and crash protection




Atit Patumvan, Faculty of Management and Information Sciences, Naresuan University.
22
Introduction to Java EE (J2EE)



                                                        Anatomy of a Servlet
         ●     init() – the init() function is called when the servlet is initialized by the
               server. This often happens on the frst doGet() or doPut() call of the
               servlet.
         ●     destroy() – this function is called when the servlet is being destroyed
               by the server, typically when the server process is being stopped.




Source: http://java.sun.com/docs/books/tutorial/servlets/lifecycle/index.html

Atit Patumvan, Faculty of Management and Information Sciences, Naresuan University.
23
Introduction to Java EE (J2EE)



                                                        Anatomy of a Servlet
         ●     doGet() – the doGet() function is called when the servlet is called via
               an HTTP GET.
         ●     doPost() – the doPost() function is called when the servlet is called
               via an HTTP POST.
         ●     POSTs are a good way to get input from HTML forms




Source: http://java.sun.com/docs/books/tutorial/servlets/lifecycle/index.html

Atit Patumvan, Faculty of Management and Information Sciences, Naresuan University.
24
Introduction to Java EE (J2EE)



                                                        Anatomy of a Servlet
         ●     HTTPServletRequest object                                        ●   HTTPServletResponse object
                 ●     Information about an HTTP                                    ●   Used for formatting an HTTP
                       request                                                          response
                         –     Headers                                                   –   Headers
                         –     Query String                                              –   Status codes
                         –     Session                                                   –   Cookies
                         –     Cookies




Source: http://java.sun.com/docs/books/tutorial/servlets/lifecycle/index.html

Atit Patumvan, Faculty of Management and Information Sciences, Naresuan University.
25
Introduction to Java EE (J2EE)




                                                    Demo




Atit Patumvan, Faculty of Management and Information Sciences, Naresuan University.
26
Introduction to Java EE (J2EE)



                         Sample Servlet: HelloWorld.java
           01: package com.patumvan.atit.servlets;
           02:
           03: import java.io.*;
           04: import javax.servlet.*;
           05: import javax.servlet.http.*;
           06:
           07: public class HelloWorld extends HttpServlet {
           08:
           09: protected void processRequest(HttpServletRequest request,
                                      HttpServletResponse response)
           10:          throws ServletException, IOException {
           11:      response.setContentType("text/html;charset=UTF-8");
           12:      PrintWriter out = response.getWriter();
           13:      try {
           14:          out.println("<html>");
           15:          out.println("<head>");
           16:          out.println("<title>Servlet HelloWorld</title>");
           17:          out.println("</head>");
           18:          out.println("<body>");
           19:          out.println("<h1>Servlet HelloWorld </h1>");
           20:          out.println("</body>");
           21:          out.println("</html>");
           22:      } finally {
           23:          out.close();
           24:      }
           25: }
            :
Atit Patumvan, Faculty of Management and Information Sciences, Naresuan University.
27
Introduction to Java EE (J2EE)



                            Sample Servlet: HelloWorld.java
            :
           30:     @Override
           31:     protected void doGet(HttpServletRequest request, HttpServletResponse response)
           32:          throws ServletException, IOException {
           33:       processRequest(request, response);
           34:     }
           35:
           36:     @Override
           37:     protected void doPost(HttpServletRequest request, HttpServletResponse response)
           38:          throws ServletException, IOException {
           39:       processRequest(request, response);
           40:     }
           41:
           42:     @Override
           43:     public String getServletInfo() {
           44:       return "Short description";
           45:     }
           46: }




Atit Patumvan, Faculty of Management and Information Sciences, Naresuan University.
28
Introduction to Java EE (J2EE)



                      Sample Servlet: /WEB-INF/web.xml
           01: <?xml version="1.0" encoding="UTF-8"?>
           02: <web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
             http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
           03: <servlet>
           04:       <servlet-name>HelloWorld</servlet-name>
           05:       <servlet-class>com.patumvan.atit.servlets.HelloWorld</servlet-class>
           06: </servlet>
           07: <servlet-mapping>
           08:       <servlet-name>HelloWorld</servlet-name>
           09:       <url-pattern>/HelloWorld</url-pattern>
           10: </servlet-mapping>
           11: <session-config>
           12:       <session-timeout>
           13:         30
           14:       </session-timeout>
           15: </session-config>
           16: <welcome-file-list>
           17:       <welcome-file>index.jsp</welcome-file>
           18: </welcome-file-list>
           19: </web-app>




Atit Patumvan, Faculty of Management and Information Sciences, Naresuan University.
29
Introduction to Java EE (J2EE)




                      What is Java Server Pages (JSP)?




Atit Patumvan, Faculty of Management and Information Sciences, Naresuan University.
30
Introduction to Java EE (J2EE)



                                  JSP – Java Server Pages
      ●   JavaServer Pages technology uses XML-like tags and scriptlets written
          in the Java programming language to encapsulate the logic that
          generates the content for the page.
      ●   Any and all formatting (HTML or XML) tags are passed directly back to
          the response page.
      ●   By separating the page logic from its design and display and
          supporting a reusable component-based design, JSP technology
          makes it faster and easier than ever to build web-based applications



Atit Patumvan, Faculty of Management and Information Sciences, Naresuan University.
31
Introduction to Java EE (J2EE)



                                   Sample JSP: /index.jsp
            01: <%@page contentType="text/html" pageEncoding="UTF-8"%>
            02: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
            03: "http://www.w3.org/TR/html4/loose.dtd">
            04:
            05: <html>
            06: <head>
            07:      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
            08:      <title>JSP Page</title>
            09: </head>
            10: <body>
            11:      <h1>Hello World!</h1>
            12: </body>
            13: </html>




Atit Patumvan, Faculty of Management and Information Sciences, Naresuan University.
32
Introduction to Java EE (J2EE)




                                           EJB
                                 (Enterprise Java Beans)




Atit Patumvan, Faculty of Management and Information Sciences, Naresuan University.
33
Introduction to Java EE (J2EE)



                                 What is EJB technology?
      ●   A server-side component technology
      ●   Easy development and deployment of Java technology-based
          application that are:
           ●   Transactional, distributed, multi-tier, portable, scalable, secure, …




Atit Patumvan, Faculty of Management and Information Sciences, Naresuan University.
34
Introduction to Java EE (J2EE)



                                    Why EJB Technology?
      ●   Leverages the benefts of component-model on the server side
           ●   Separates business logic from system code
           ●   Container provides system services
      ●   Provides framework for portable components
           ●   Over different J2EE-compliant servers
           ●   Over different operational environments
      ●   Enables deployment-time confguration
           ●   Deployment descriptor



Atit Patumvan, Faculty of Management and Information Sciences, Naresuan University.
35
Introduction to Java EE (J2EE)



                                 EJB – Enterprise Java Beans
      ●   Enterprise Java Beans are components that are deployed into
          containers
      ●   The container provides services
           ●   Loading / Initialization
           ●   Transactions
           ●   Persistence
           ●   Communication with EJB clients
           ●   Enterprise Naming Context (JNDI name space)



Atit Patumvan, Faculty of Management and Information Sciences, Naresuan University.
36
Introduction to Java EE (J2EE)



                                          EJB Architecture




Atit Patumvan, Faculty of Management and Information Sciences, Naresuan University.
37
Introduction to Java EE (J2EE)



                                     Enterprise Java Beans
                                              Enterprise JavaBeans




                     Synchronous communication                       Asynchronous communication
                   Session Bean              Entity Bean                    Message-Driven Bean




             Stateless           Stateful



                                 Bean managed          Container managed
                                  Persistence             Persistence
                                    (BMP)                    (CMP)



Atit Patumvan, Faculty of Management and Information Sciences, Naresuan University.
38
Introduction to Java EE (J2EE)




                                          JMS
                                 (Java Message Services)




Atit Patumvan, Faculty of Management and Information Sciences, Naresuan University.
39
Introduction to Java EE (J2EE)



                                 Java Messing Service (JMS)
      ●   Messaging systems (MOM) provide
           ●   De-coupled communication
           ●   Asynchronous communication
           ●   Plays a role of centralized post offce
      ●   Benefts of Messaging systems
           ●   Flexible, Reliable, Scalable communication systems
      ●   Point-to-Point, Publish and Subscribe
      ●   JMS defnes standard Java APIs to messaging systems


Atit Patumvan, Faculty of Management and Information Sciences, Naresuan University.
40
Introduction to Java EE (J2EE)




                                  Connector Architecture




Atit Patumvan, Faculty of Management and Information Sciences, Naresuan University.
41
Introduction to Java EE (J2EE)



                                           m x n Problem
                                 m                                                     n


                             App                                                      SAP
                            Server1

                             App
                                                                                      EIS2
                            Server2


                             App                                                      EIS3
                            Server3


                             App                                                      EIS4
                            Server




Atit Patumvan, Faculty of Management and Information Sciences, Naresuan University.
42
Introduction to Java EE (J2EE)



                                  Connector Architecture
      ●   Defnes standard API for integrating J2EE technology with EIS systems
           ●   CICS, SAP, PeopleSoft, etc.
      ●   Before Connector architecture, each App server has to provide an
          proprietary adaptor for each EIS system
           ●   m (# of App servers) x n (# of EIS's) Adaptors
      ●   With Connector architecture, same adaptor works with all J2EE
          compliant containers
           ●   1 (common to all App servers) x n (# of EIS's) Adaptors



Atit Patumvan, Faculty of Management and Information Sciences, Naresuan University.
43
Introduction to Java EE (J2EE)




                             JAAS
         (Java Authentication & Authorization Services)




Atit Patumvan, Faculty of Management and Information Sciences, Naresuan University.
44
Introduction to Java EE (J2EE)



                                     JAAS: Authentication
      ●   Pluggable authentication framework
           ●   Userid/password
           ●   Smartcard
           ●   Kerberos
           ●   Biometric
      ●   Application portability regardless of authentication schemes
          underneath
           ●   JAAS provides authentication scheme independent API
           ●   Authentication schemes are specifed Login confguration fle, which will be
               read by JAAS
Atit Patumvan, Faculty of Management and Information Sciences, Naresuan University.
45
Introduction to Java EE (J2EE)



                          JAAS Pluggable Authentication




Atit Patumvan, Faculty of Management and Information Sciences, Naresuan University.
46
Introduction to Java EE (J2EE)




                     Other J2EE APIs and Technologies




Atit Patumvan, Faculty of Management and Information Sciences, Naresuan University.
47
Introduction to Java EE (J2EE)



               Java Naming and Directory Interface (JNDI)
      ●   Utilized by J2EE applications to locate resources and objects in
          portable fashion
           ●   Applications use symbolic names to fnd object references to resources via
               JNDI
           ●   The symbolic names and object references have to be confgured by
               system administrator when the application is deployed.




Atit Patumvan, Faculty of Management and Information Sciences, Naresuan University.
48
Introduction to Java EE (J2EE)



                         Java Database Connector (JDBC)
      ●   Provides standard Java programming API to relational database
           ●   Uses SQL
      ●   Vendors provide JDBC compliant driver which can be invoked via
          standard Java programming API.




Atit Patumvan, Faculty of Management and Information Sciences, Naresuan University.
49
Introduction to Java EE (J2EE)




                         J2EE is End to End Architecture




Atit Patumvan, Faculty of Management and Information Sciences, Naresuan University.
50
Introduction to Java EE (J2EE)



                          The J2EE Platform Architecture
            B2B
         Applications
                                                                                        Existing
                                                                                      Applications

            B2C
         Applications



            Web
          Services
                                                                                       Enterprise
                                                                                      Information
          Wireless                             Application Server                       Systems
         Applications




Atit Patumvan, Faculty of Management and Information Sciences, Naresuan University.
51
Introduction to Java EE (J2EE)



                                 N-tear J2EE Architecture




                                          Web Tier               EJB Tier




Atit Patumvan, Faculty of Management and Information Sciences, Naresuan University.
52
Introduction to Java EE (J2EE)



                                         J2EE Deployment
      ●   JAR – Java ARchive
           ●   Java class fle
           ●   EJBs
      ●   WAR - Web ARchive
           ●   Servlets
           ●   JSPs
      ●   EAR - Enterprise ARchive
           ●   Contains other JARs and WARs to form an entire application
      ●   Deployment descriptors
           ●   XML
Atit Patumvan, Faculty of Management and Information Sciences, Naresuan University.
53
Introduction to Java EE (J2EE)



                                               J2EE Server
      ●   Application Server
           ●   As of Sept ’01 - MetaGroup Survey by sales $$
                 –   BEA Weblogic - 37%
                 –   IBM Websphere – 22%
                 –   Oracle – 11%
                 –   Iplanet – 5%
                 –   Other- 12%
           ●   Open-source
                 –   Jboss – www.jboss.org
           ●   Sun’s listing of J2EE compatible servers
                 –   http://java.sun.com/j2ee/compatibility.html
Atit Patumvan, Faculty of Management and Information Sciences, Naresuan University.
54
Introduction to Java EE (J2EE)



                                              J2EE Servers
      ●   Servlet / JSP Servers
           ●   Most of the commercial application servers also include servlet / JSP
               support
           ●   Open-Source
                 –   Apache Tomcat
                 –   Jetty
      ●   Sun’s listing of servlet / JSP servers
           ●   http://java.sun.com/products/servlet/industry.html




Atit Patumvan, Faculty of Management and Information Sciences, Naresuan University.
55
Introduction to Java EE (J2EE)



                                 J2EE Development Tools
      ●   Major IDEs support J2EE in some form
           ●   Wizards for EJB / Servlets
           ●   Custom editors for JSP
           ●   Deployment descriptor support
           ●   Deployment support for application servers
           ●   Embedded servers for testing within IDE




Atit Patumvan, Faculty of Management and Information Sciences, Naresuan University.
56
Introduction to Java EE (J2EE)



                                          Learning More...
      ●   Enterprise JavaBeans – 3rd Edition
           ●   Richard Monson-Haefel, O’Reilly © 2001
      ●   JBoss documentation
           ●   http://www.jboss.org/online-manual/HTML/index.html
      ●   Designing Enterprise Applications with the Java 2 Platform, Enterprise
          Edition
           ●   Nicholas Kassem and the Enterprise Team, Addison Wesley © 2000
      ●   Core Servlets and JavaServer Pages (JSP)
           ●   Marty Hall, Prentice Hall © 2000

Atit Patumvan, Faculty of Management and Information Sciences, Naresuan University.
57
Introduction to Java EE (J2EE)



                                          Learning More ...
      ●   J2EE Tutorial - http://java.sun.com/j2ee/tutorial/1_3-fcs
      ●   J2EE Developers Guide -
          http://java.sun.com/j2ee/sdk_1.2.1/techdocs/guides/ejb/html/DevGui
          deTOC.html
      ●   JNDI - http://java.sun.com/products/jndi/tutorial/
      ●   JMS - http://java.sun.com/products/jms/tutorial/
      ●   JDBC - http://java.sun.com/docs/books/tutorial/jdbc
      ●   Servlets - http://java.sun.com/docs/books/tutorial/servlets
      ●   JSP - http://java.sun.com/products/jsp/docs.html
       ●  JAXP - http://java.sun.com/xml/jaxp/dist/1.1/docs/tutorial
Atit Patumvan, Faculty of Management and Information Sciences, Naresuan University.

More Related Content

What's hot

Enterprise java unit-1_chapter-1
Enterprise java unit-1_chapter-1Enterprise java unit-1_chapter-1
Enterprise java unit-1_chapter-1sandeep54552
 
Microsoft dot net framework
Microsoft dot net frameworkMicrosoft dot net framework
Microsoft dot net frameworkAshish Verma
 
J2 ee container & components
J2 ee container & componentsJ2 ee container & components
J2 ee container & componentsKeshab Nath
 
Asp.net and .Net Framework ppt presentation
Asp.net and .Net Framework ppt presentationAsp.net and .Net Framework ppt presentation
Asp.net and .Net Framework ppt presentationabhishek singh
 
Write an application that draws basic graphical primitives.pptx
Write an application that draws basic graphical primitives.pptxWrite an application that draws basic graphical primitives.pptx
Write an application that draws basic graphical primitives.pptxvishal choudhary
 
Enterprise Java Beans - EJB
Enterprise Java Beans - EJBEnterprise Java Beans - EJB
Enterprise Java Beans - EJBPeter R. Egli
 
Object oriented-systems-development-life-cycle ppt
Object oriented-systems-development-life-cycle pptObject oriented-systems-development-life-cycle ppt
Object oriented-systems-development-life-cycle pptKunal Kishor Nirala
 
College Management System project
College Management System projectCollege Management System project
College Management System projectManish Kushwaha
 
Remote Method Invocation (RMI)
Remote Method Invocation (RMI)Remote Method Invocation (RMI)
Remote Method Invocation (RMI)Peter R. Egli
 
Software engineering a practitioners approach 8th edition pressman solutions ...
Software engineering a practitioners approach 8th edition pressman solutions ...Software engineering a practitioners approach 8th edition pressman solutions ...
Software engineering a practitioners approach 8th edition pressman solutions ...Drusilla918
 
Introduction To Dotnet
Introduction To DotnetIntroduction To Dotnet
Introduction To DotnetSAMIR BHOGAYTA
 
Graphical User Interface (GUI) - 1
Graphical User Interface (GUI) - 1Graphical User Interface (GUI) - 1
Graphical User Interface (GUI) - 1PRN USM
 
Formation Spring Avancé gratuite par Ippon 2014
Formation Spring Avancé gratuite par Ippon 2014Formation Spring Avancé gratuite par Ippon 2014
Formation Spring Avancé gratuite par Ippon 2014Ippon
 
College management system ppt
College management system pptCollege management system ppt
College management system pptShanthan Reddy
 
Java Virtual Machine (JVM), Difference JDK, JRE & JVM
Java Virtual Machine (JVM), Difference JDK, JRE & JVMJava Virtual Machine (JVM), Difference JDK, JRE & JVM
Java Virtual Machine (JVM), Difference JDK, JRE & JVMshamnasain
 

What's hot (20)

Enterprise java unit-1_chapter-1
Enterprise java unit-1_chapter-1Enterprise java unit-1_chapter-1
Enterprise java unit-1_chapter-1
 
Hibernate in Action
Hibernate in ActionHibernate in Action
Hibernate in Action
 
Microsoft dot net framework
Microsoft dot net frameworkMicrosoft dot net framework
Microsoft dot net framework
 
J2 ee container & components
J2 ee container & componentsJ2 ee container & components
J2 ee container & components
 
Asp.net.
Asp.net.Asp.net.
Asp.net.
 
Asp.net and .Net Framework ppt presentation
Asp.net and .Net Framework ppt presentationAsp.net and .Net Framework ppt presentation
Asp.net and .Net Framework ppt presentation
 
Write an application that draws basic graphical primitives.pptx
Write an application that draws basic graphical primitives.pptxWrite an application that draws basic graphical primitives.pptx
Write an application that draws basic graphical primitives.pptx
 
Enterprise Java Beans - EJB
Enterprise Java Beans - EJBEnterprise Java Beans - EJB
Enterprise Java Beans - EJB
 
Hibernate
HibernateHibernate
Hibernate
 
Object oriented-systems-development-life-cycle ppt
Object oriented-systems-development-life-cycle pptObject oriented-systems-development-life-cycle ppt
Object oriented-systems-development-life-cycle ppt
 
Java Spring Framework
Java Spring FrameworkJava Spring Framework
Java Spring Framework
 
DOT Net overview
DOT Net overviewDOT Net overview
DOT Net overview
 
College Management System project
College Management System projectCollege Management System project
College Management System project
 
Remote Method Invocation (RMI)
Remote Method Invocation (RMI)Remote Method Invocation (RMI)
Remote Method Invocation (RMI)
 
Software engineering a practitioners approach 8th edition pressman solutions ...
Software engineering a practitioners approach 8th edition pressman solutions ...Software engineering a practitioners approach 8th edition pressman solutions ...
Software engineering a practitioners approach 8th edition pressman solutions ...
 
Introduction To Dotnet
Introduction To DotnetIntroduction To Dotnet
Introduction To Dotnet
 
Graphical User Interface (GUI) - 1
Graphical User Interface (GUI) - 1Graphical User Interface (GUI) - 1
Graphical User Interface (GUI) - 1
 
Formation Spring Avancé gratuite par Ippon 2014
Formation Spring Avancé gratuite par Ippon 2014Formation Spring Avancé gratuite par Ippon 2014
Formation Spring Avancé gratuite par Ippon 2014
 
College management system ppt
College management system pptCollege management system ppt
College management system ppt
 
Java Virtual Machine (JVM), Difference JDK, JRE & JVM
Java Virtual Machine (JVM), Difference JDK, JRE & JVMJava Virtual Machine (JVM), Difference JDK, JRE & JVM
Java Virtual Machine (JVM), Difference JDK, JRE & JVM
 

Viewers also liked

J2EE and layered architecture
J2EE and layered architectureJ2EE and layered architecture
J2EE and layered architectureSuman Behara
 
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
 
Introduction to Java Enterprise Edition
Introduction to Java Enterprise EditionIntroduction to Java Enterprise Edition
Introduction to Java Enterprise EditionAbdalla Mahmoud
 
remote method invocation
remote method invocationremote method invocation
remote method invocationArun Nair
 
การบริหารเชิงคุณภาพ ชุดที่ 8
การบริหารเชิงคุณภาพ ชุดที่ 8การบริหารเชิงคุณภาพ ชุดที่ 8
การบริหารเชิงคุณภาพ ชุดที่ 8Atit Patumvan
 
Chapter 1 mathmatics tools
Chapter 1 mathmatics toolsChapter 1 mathmatics tools
Chapter 1 mathmatics toolsAtit Patumvan
 
Chapter 1 mathmatics tools
Chapter 1 mathmatics toolsChapter 1 mathmatics tools
Chapter 1 mathmatics toolsAtit Patumvan
 
การบริหารเชิงคุณภาพ ชุดที่ 7
การบริหารเชิงคุณภาพ ชุดที่ 7การบริหารเชิงคุณภาพ ชุดที่ 7
การบริหารเชิงคุณภาพ ชุดที่ 7Atit Patumvan
 
การบริหารเชิงคุณภาพ ชุดที่ 3
การบริหารเชิงคุณภาพ ชุดที่ 3การบริหารเชิงคุณภาพ ชุดที่ 3
การบริหารเชิงคุณภาพ ชุดที่ 3Atit Patumvan
 
การบริหารเชิงคุณภาพ ชุดที่ 2
การบริหารเชิงคุณภาพ ชุดที่ 2การบริหารเชิงคุณภาพ ชุดที่ 2
การบริหารเชิงคุณภาพ ชุดที่ 2Atit Patumvan
 
Computer Programming Chapter 5 : Methods
Computer Programming Chapter 5 : MethodsComputer Programming Chapter 5 : Methods
Computer Programming Chapter 5 : MethodsAtit Patumvan
 
การบริหารเชิงคุณภาพ ชุดที่ 4
การบริหารเชิงคุณภาพ ชุดที่ 4การบริหารเชิงคุณภาพ ชุดที่ 4
การบริหารเชิงคุณภาพ ชุดที่ 4Atit Patumvan
 
An Overview of eZee Burrp! (Philus Limited)
An Overview of eZee Burrp! (Philus Limited)An Overview of eZee Burrp! (Philus Limited)
An Overview of eZee Burrp! (Philus Limited)Atit Patumvan
 

Viewers also liked (20)

J2EE and layered architecture
J2EE and layered architectureJ2EE and layered architecture
J2EE and layered architecture
 
J2ee architecture
J2ee architectureJ2ee architecture
J2ee architecture
 
J2EE Introduction
J2EE IntroductionJ2EE Introduction
J2EE Introduction
 
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
 
Introduction to Java Enterprise Edition
Introduction to Java Enterprise EditionIntroduction to Java Enterprise Edition
Introduction to Java Enterprise Edition
 
remote method invocation
remote method invocationremote method invocation
remote method invocation
 
การบริหารเชิงคุณภาพ ชุดที่ 8
การบริหารเชิงคุณภาพ ชุดที่ 8การบริหารเชิงคุณภาพ ชุดที่ 8
การบริหารเชิงคุณภาพ ชุดที่ 8
 
Chapter 1 mathmatics tools
Chapter 1 mathmatics toolsChapter 1 mathmatics tools
Chapter 1 mathmatics tools
 
Chapter 1 mathmatics tools
Chapter 1 mathmatics toolsChapter 1 mathmatics tools
Chapter 1 mathmatics tools
 
การบริหารเชิงคุณภาพ ชุดที่ 7
การบริหารเชิงคุณภาพ ชุดที่ 7การบริหารเชิงคุณภาพ ชุดที่ 7
การบริหารเชิงคุณภาพ ชุดที่ 7
 
การบริหารเชิงคุณภาพ ชุดที่ 3
การบริหารเชิงคุณภาพ ชุดที่ 3การบริหารเชิงคุณภาพ ชุดที่ 3
การบริหารเชิงคุณภาพ ชุดที่ 3
 
การบริหารเชิงคุณภาพ ชุดที่ 2
การบริหารเชิงคุณภาพ ชุดที่ 2การบริหารเชิงคุณภาพ ชุดที่ 2
การบริหารเชิงคุณภาพ ชุดที่ 2
 
Java beans
Java beansJava beans
Java beans
 
Computer Programming Chapter 5 : Methods
Computer Programming Chapter 5 : MethodsComputer Programming Chapter 5 : Methods
Computer Programming Chapter 5 : Methods
 
Java chapter 5
Java chapter 5Java chapter 5
Java chapter 5
 
การบริหารเชิงคุณภาพ ชุดที่ 4
การบริหารเชิงคุณภาพ ชุดที่ 4การบริหารเชิงคุณภาพ ชุดที่ 4
การบริหารเชิงคุณภาพ ชุดที่ 4
 
An Overview of eZee Burrp! (Philus Limited)
An Overview of eZee Burrp! (Philus Limited)An Overview of eZee Burrp! (Philus Limited)
An Overview of eZee Burrp! (Philus Limited)
 
Java 1-contd
Java 1-contdJava 1-contd
Java 1-contd
 
Java swing 1
Java swing 1Java swing 1
Java swing 1
 

Similar to Introduction to Java EE (J2EE) MVC and Core Concepts

Shin J2 Ee Programming Half Day
Shin J2 Ee Programming Half DayShin J2 Ee Programming Half Day
Shin J2 Ee Programming Half Daylokendralodha
 
Summer training in j2ee
Summer training in j2eeSummer training in j2ee
Summer training in j2eeDUCC Systems
 
6 Weeks Project Based Summer Training
6 Weeks Project Based Summer Training6 Weeks Project Based Summer Training
6 Weeks Project Based Summer TrainingTech Mentro
 
Presenter manual J2EE (specially for summer interns)
Presenter manual  J2EE (specially for summer interns)Presenter manual  J2EE (specially for summer interns)
Presenter manual J2EE (specially for summer interns)XPERT INFOTECH
 
Java Framework Training.pdf
Java Framework Training.pdfJava Framework Training.pdf
Java Framework Training.pdfajeetyadav541305
 
Industrial Summer Training for MCA/BCA/BE/B-Tech Students
Industrial Summer Training for MCA/BCA/BE/B-Tech StudentsIndustrial Summer Training for MCA/BCA/BE/B-Tech Students
Industrial Summer Training for MCA/BCA/BE/B-Tech StudentsTech Mentro
 
LatJUG. Spring Roo
LatJUG. Spring RooLatJUG. Spring Roo
LatJUG. Spring Roodenis Udod
 
Presenter manual core java (specially for summer interns)
Presenter manual  core java (specially for summer interns)Presenter manual  core java (specially for summer interns)
Presenter manual core java (specially for summer interns)XPERT INFOTECH
 
Catalyst college-presentation
Catalyst college-presentationCatalyst college-presentation
Catalyst college-presentationVinodh Kombissan
 
Summer training java
Summer training javaSummer training java
Summer training javaArshit Rai
 
Java academy
Java academyJava academy
Java academyeddyvos
 
Summer training java
Summer training javaSummer training java
Summer training javaArshit Rai
 
Visual Studio Application Lifecycle Managment end-to-end
Visual Studio Application Lifecycle Managment end-to-endVisual Studio Application Lifecycle Managment end-to-end
Visual Studio Application Lifecycle Managment end-to-endHosam Kamel
 

Similar to Introduction to Java EE (J2EE) MVC and Core Concepts (20)

Shin J2 Ee Programming Half Day
Shin J2 Ee Programming Half DayShin J2 Ee Programming Half Day
Shin J2 Ee Programming Half Day
 
Summer training in j2ee
Summer training in j2eeSummer training in j2ee
Summer training in j2ee
 
J2EE day 1
J2EE day 1J2EE day 1
J2EE day 1
 
6 Weeks Project Based Summer Training
6 Weeks Project Based Summer Training6 Weeks Project Based Summer Training
6 Weeks Project Based Summer Training
 
Presenter manual J2EE (specially for summer interns)
Presenter manual  J2EE (specially for summer interns)Presenter manual  J2EE (specially for summer interns)
Presenter manual J2EE (specially for summer interns)
 
Spring ppt
Spring pptSpring ppt
Spring ppt
 
Javatraining
JavatrainingJavatraining
Javatraining
 
Java Framework Training.pdf
Java Framework Training.pdfJava Framework Training.pdf
Java Framework Training.pdf
 
Industrial Summer Training for MCA/BCA/BE/B-Tech Students
Industrial Summer Training for MCA/BCA/BE/B-Tech StudentsIndustrial Summer Training for MCA/BCA/BE/B-Tech Students
Industrial Summer Training for MCA/BCA/BE/B-Tech Students
 
LatJUG. Spring Roo
LatJUG. Spring RooLatJUG. Spring Roo
LatJUG. Spring Roo
 
Presenter manual core java (specially for summer interns)
Presenter manual  core java (specially for summer interns)Presenter manual  core java (specially for summer interns)
Presenter manual core java (specially for summer interns)
 
Naveen Gudapati Resume
Naveen Gudapati ResumeNaveen Gudapati Resume
Naveen Gudapati Resume
 
Catalyst college-presentation
Catalyst college-presentationCatalyst college-presentation
Catalyst college-presentation
 
Summer training java
Summer training javaSummer training java
Summer training java
 
Java academy
Java academyJava academy
Java academy
 
Java
JavaJava
Java
 
D4 recommendation emenu_development
D4 recommendation emenu_developmentD4 recommendation emenu_development
D4 recommendation emenu_development
 
Tamilmani_JAVAJ2EE_8.6YRS
Tamilmani_JAVAJ2EE_8.6YRSTamilmani_JAVAJ2EE_8.6YRS
Tamilmani_JAVAJ2EE_8.6YRS
 
Summer training java
Summer training javaSummer training java
Summer training java
 
Visual Studio Application Lifecycle Managment end-to-end
Visual Studio Application Lifecycle Managment end-to-endVisual Studio Application Lifecycle Managment end-to-end
Visual Studio Application Lifecycle Managment end-to-end
 

More from Atit Patumvan

Iot for smart agriculture
Iot for smart agricultureIot for smart agriculture
Iot for smart agricultureAtit Patumvan
 
แบบฝึกหัดวิชา Theory of Computation ชุดที่ 1 เซ็ต
แบบฝึกหัดวิชา Theory of Computation ชุดที่ 1 เซ็ตแบบฝึกหัดวิชา Theory of Computation ชุดที่ 1 เซ็ต
แบบฝึกหัดวิชา Theory of Computation ชุดที่ 1 เซ็ตAtit Patumvan
 
รายงานการประเมินคุณภาพภายใน ปีงบประมาณ 2556
รายงานการประเมินคุณภาพภายใน ปีงบประมาณ 2556รายงานการประเมินคุณภาพภายใน ปีงบประมาณ 2556
รายงานการประเมินคุณภาพภายใน ปีงบประมาณ 2556Atit Patumvan
 
Chapter 0 introduction to theory of computation
Chapter 0 introduction to theory of computationChapter 0 introduction to theory of computation
Chapter 0 introduction to theory of computationAtit Patumvan
 
Chapter 01 mathmatics tools (slide)
Chapter 01 mathmatics tools (slide)Chapter 01 mathmatics tools (slide)
Chapter 01 mathmatics tools (slide)Atit Patumvan
 
การบริหารเชิงคุณภาพ ชุดที่ 6
การบริหารเชิงคุณภาพ ชุดที่ 6การบริหารเชิงคุณภาพ ชุดที่ 6
การบริหารเชิงคุณภาพ ชุดที่ 6Atit Patumvan
 
Computer Programming Chapter 4 : Loops
Computer Programming Chapter 4 : Loops Computer Programming Chapter 4 : Loops
Computer Programming Chapter 4 : Loops Atit Patumvan
 
การบริหารเชิงคุณภาพ ชุดที่ 5
การบริหารเชิงคุณภาพ ชุดที่ 5การบริหารเชิงคุณภาพ ชุดที่ 5
การบริหารเชิงคุณภาพ ชุดที่ 5Atit Patumvan
 
Computer Programming: Chapter 1
Computer Programming: Chapter 1Computer Programming: Chapter 1
Computer Programming: Chapter 1Atit Patumvan
 
การบริหารเชิงคุณภาพ ชุดที่ 1
การบริหารเชิงคุณภาพ ชุดที่ 1การบริหารเชิงคุณภาพ ชุดที่ 1
การบริหารเชิงคุณภาพ ชุดที่ 1Atit Patumvan
 
Write native iPhone applications using Eclipse CDT
Write native iPhone applications using Eclipse CDTWrite native iPhone applications using Eclipse CDT
Write native iPhone applications using Eclipse CDTAtit Patumvan
 
Chapter 9 : Polymorphism, Dynamic Typing, and Dynamic Binding
Chapter 9 : Polymorphism, Dynamic Typing, and Dynamic BindingChapter 9 : Polymorphism, Dynamic Typing, and Dynamic Binding
Chapter 9 : Polymorphism, Dynamic Typing, and Dynamic BindingAtit Patumvan
 
OOP Chapter 8 : Inheritance
OOP Chapter 8 : InheritanceOOP Chapter 8 : Inheritance
OOP Chapter 8 : InheritanceAtit Patumvan
 
การตลาดโดยใช้พิกัดสถานที่เป็นฐาน
การตลาดโดยใช้พิกัดสถานที่เป็นฐานการตลาดโดยใช้พิกัดสถานที่เป็นฐาน
การตลาดโดยใช้พิกัดสถานที่เป็นฐานAtit Patumvan
 
OOP Chapter 7 : More on Classes
OOP Chapter 7 : More on ClassesOOP Chapter 7 : More on Classes
OOP Chapter 7 : More on ClassesAtit Patumvan
 
การจัดการธุรกิจแบบเหนือเมฆ
การจัดการธุรกิจแบบเหนือเมฆการจัดการธุรกิจแบบเหนือเมฆ
การจัดการธุรกิจแบบเหนือเมฆAtit Patumvan
 
OOP Chapter 6: Making Decisions
OOP Chapter 6: Making DecisionsOOP Chapter 6: Making Decisions
OOP Chapter 6: Making DecisionsAtit Patumvan
 
OOP Chapter 5 : Program Looping
OOP Chapter 5 : Program Looping OOP Chapter 5 : Program Looping
OOP Chapter 5 : Program Looping Atit Patumvan
 
OOP Chapter 4: Data Type and Expressions
OOP Chapter 4: Data Type and ExpressionsOOP Chapter 4: Data Type and Expressions
OOP Chapter 4: Data Type and ExpressionsAtit Patumvan
 

More from Atit Patumvan (20)

Iot for smart agriculture
Iot for smart agricultureIot for smart agriculture
Iot for smart agriculture
 
แบบฝึกหัดวิชา Theory of Computation ชุดที่ 1 เซ็ต
แบบฝึกหัดวิชา Theory of Computation ชุดที่ 1 เซ็ตแบบฝึกหัดวิชา Theory of Computation ชุดที่ 1 เซ็ต
แบบฝึกหัดวิชา Theory of Computation ชุดที่ 1 เซ็ต
 
รายงานการประเมินคุณภาพภายใน ปีงบประมาณ 2556
รายงานการประเมินคุณภาพภายใน ปีงบประมาณ 2556รายงานการประเมินคุณภาพภายใน ปีงบประมาณ 2556
รายงานการประเมินคุณภาพภายใน ปีงบประมาณ 2556
 
Chapter 0 introduction to theory of computation
Chapter 0 introduction to theory of computationChapter 0 introduction to theory of computation
Chapter 0 introduction to theory of computation
 
Media literacy
Media literacyMedia literacy
Media literacy
 
Chapter 01 mathmatics tools (slide)
Chapter 01 mathmatics tools (slide)Chapter 01 mathmatics tools (slide)
Chapter 01 mathmatics tools (slide)
 
การบริหารเชิงคุณภาพ ชุดที่ 6
การบริหารเชิงคุณภาพ ชุดที่ 6การบริหารเชิงคุณภาพ ชุดที่ 6
การบริหารเชิงคุณภาพ ชุดที่ 6
 
Computer Programming Chapter 4 : Loops
Computer Programming Chapter 4 : Loops Computer Programming Chapter 4 : Loops
Computer Programming Chapter 4 : Loops
 
การบริหารเชิงคุณภาพ ชุดที่ 5
การบริหารเชิงคุณภาพ ชุดที่ 5การบริหารเชิงคุณภาพ ชุดที่ 5
การบริหารเชิงคุณภาพ ชุดที่ 5
 
Computer Programming: Chapter 1
Computer Programming: Chapter 1Computer Programming: Chapter 1
Computer Programming: Chapter 1
 
การบริหารเชิงคุณภาพ ชุดที่ 1
การบริหารเชิงคุณภาพ ชุดที่ 1การบริหารเชิงคุณภาพ ชุดที่ 1
การบริหารเชิงคุณภาพ ชุดที่ 1
 
Write native iPhone applications using Eclipse CDT
Write native iPhone applications using Eclipse CDTWrite native iPhone applications using Eclipse CDT
Write native iPhone applications using Eclipse CDT
 
Chapter 9 : Polymorphism, Dynamic Typing, and Dynamic Binding
Chapter 9 : Polymorphism, Dynamic Typing, and Dynamic BindingChapter 9 : Polymorphism, Dynamic Typing, and Dynamic Binding
Chapter 9 : Polymorphism, Dynamic Typing, and Dynamic Binding
 
OOP Chapter 8 : Inheritance
OOP Chapter 8 : InheritanceOOP Chapter 8 : Inheritance
OOP Chapter 8 : Inheritance
 
การตลาดโดยใช้พิกัดสถานที่เป็นฐาน
การตลาดโดยใช้พิกัดสถานที่เป็นฐานการตลาดโดยใช้พิกัดสถานที่เป็นฐาน
การตลาดโดยใช้พิกัดสถานที่เป็นฐาน
 
OOP Chapter 7 : More on Classes
OOP Chapter 7 : More on ClassesOOP Chapter 7 : More on Classes
OOP Chapter 7 : More on Classes
 
การจัดการธุรกิจแบบเหนือเมฆ
การจัดการธุรกิจแบบเหนือเมฆการจัดการธุรกิจแบบเหนือเมฆ
การจัดการธุรกิจแบบเหนือเมฆ
 
OOP Chapter 6: Making Decisions
OOP Chapter 6: Making DecisionsOOP Chapter 6: Making Decisions
OOP Chapter 6: Making Decisions
 
OOP Chapter 5 : Program Looping
OOP Chapter 5 : Program Looping OOP Chapter 5 : Program Looping
OOP Chapter 5 : Program Looping
 
OOP Chapter 4: Data Type and Expressions
OOP Chapter 4: Data Type and ExpressionsOOP Chapter 4: Data Type and Expressions
OOP Chapter 4: Data Type and Expressions
 

Recently uploaded

Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphThiyagu K
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactPECB
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
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
 
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
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionSafetyChain Software
 
social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajanpragatimahajan3
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfchloefrazer622
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationnomboosow
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpinRaunakKeshri1
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdfQucHHunhnh
 
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...fonyou31
 
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
 
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...anjaliyadav012327
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Celine George
 

Recently uploaded (20)

Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
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
 
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
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory Inspection
 
social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajan
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdf
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpin
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
Advance Mobile Application Development class 07
Advance Mobile Application Development class 07Advance Mobile Application Development class 07
Advance Mobile Application Development class 07
 
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
 
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
 
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 

Introduction to Java EE (J2EE) MVC and Core Concepts

  • 1. Introduction to Java EE (J2EE) Introduction to Java EE (J2EE) Atit Patumvan, Lecturer Faculty of Management and Information Sciences Naresuan University Atit Patumvan, Faculty of Management and Information Sciences, Naresuan University.
  • 2. 2 Introduction to Java EE (J2EE) Model View Controller Design Pattern ● MVC is an acronym for Model View Controller ● MVC pattern separates the modeling of the domain, the presentation, and the actions based on user input into three separate classes ● Very popular, used extensively in Java and other languages. Atit Patumvan, Faculty of Management and Information Sciences, Naresuan University.
  • 3. 3 Introduction to Java EE (J2EE) Core Elements of MVC ● Model: Contains the data model and all information that identifes the state of the application. It is generally self-consistent and independent of the other elements. ● View: Stands on the other side in respect to the model and defnes the representation of the data stored in the model. The view is commonly identifed as your application's user interface (or GUI) or, in case of Web applications, the browser Webpage. ● Controller: Represents the application logic. Here, it is defned how the user can interact with the application and how user actions are mapped to model changes Atit Patumvan, Faculty of Management and Information Sciences, Naresuan University.
  • 4. 4 Introduction to Java EE (J2EE) Standard MVC Structure Controller notifies user interaction Handles model updates View Model Update the views on model changes Atit Patumvan, Faculty of Management and Information Sciences, Naresuan University.
  • 5. 5 Introduction to Java EE (J2EE) Demo Atit Patumvan, Faculty of Management and Information Sciences, Naresuan University.
  • 6. 6 Introduction to Java EE (J2EE) What is J2EE? Atit Patumvan, Faculty of Management and Information Sciences, Naresuan University.
  • 7. 7 Introduction to Java EE (J2EE) The Java Platform Atit Patumvan, Faculty of Management and Information Sciences, Naresuan University.
  • 8. 8 Introduction to Java EE (J2EE) The Java Platform Optional Packages Optional Packages J2ME CDC J2EE J2EE Foundation Profile MID Profile CDC CLDC Java Card API Java Virtual Machine CVM KVM CardVM Atit Patumvan, Faculty of Management and Information Sciences, Naresuan University.
  • 9. 9 Introduction to Java EE (J2EE) What is the J2EE ● Open and standard based platform for ● Developing, deploying and managing ● N-tier, Web enabled, server-centric, and component based enterprise application Atit Patumvan, Faculty of Management and Information Sciences, Naresuan University.
  • 10. 10 Introduction to Java EE (J2EE) What Makes Up J2EE? ● API and Technology J2EE J2EE J2EE J2EE Specification Reference specifcations Specification Reference Implementation Implementation ● Development and Deployment Platform J2EE ● Standard and production- quality implementation J2EE J2EE J2EE J2EE Compatibility Compatibility Application Application ● Compatibility Test Suite (CTS) Test Test Suite Programming Programming Model Suite Model ● J2EE brand ● J2EE blueprint ● Sample Code Atit Patumvan, Faculty of Management and Information Sciences, Naresuan University.
  • 11. 11 Introduction to Java EE (J2EE) Open and Standard Solution ● Use “component and container” model in which container provides system services in a-well defned as an industrial standard ● J2EE is that standard that also provides portability of code because it is based on Java technology and standard-based Java programming APIs Atit Patumvan, Faculty of Management and Information Sciences, Naresuan University.
  • 12. 12 Introduction to Java EE (J2EE) Platform Value to Developer ● Can use any J2EE implementation for development and deployment ● Vast amount of J2EE community resources ● Can use off-the-shelf 3rd party business components Atit Patumvan, Faculty of Management and Information Sciences, Naresuan University.
  • 13. 13 Introduction to Java EE (J2EE) Platform Value to Vendors ● Vendors work together on specifcations and then complete in implementation ● Scalability, Performance, Reliability, Availability, Management and development tools, and so on ● Freedom to innovate while maintaining the portability of application ● Do not have to create and maintain their own proprietary API Atit Patumvan, Faculty of Management and Information Sciences, Naresuan University.
  • 14. 14 Introduction to Java EE (J2EE) Platform Value to Business Customers ● Many implementation choices are possible based on various requirements ● Price (Free to high-end), scalability (single CPU to clustered model), reliability, performance, tools and more ● Best of breed of application and platforms ● Large developer pool Atit Patumvan, Faculty of Management and Information Sciences, Naresuan University.
  • 15. 15 Introduction to Java EE (J2EE) J2EE API and Technologies Atit Patumvan, Faculty of Management and Information Sciences, Naresuan University.
  • 16. 16 Introduction to Java EE (J2EE) J2EE 1.4 APIs and Technologies ● J2SE 1.4 (Improved) ● Servlet 2.4 ● JAX-RPC (new) ● JSP 2.0 ● Web Services for J2EE ● EJB 2.1 ● J2EE Management ● JAXR ● J2EE Deployment ● Connector 1.5 ● JMX 1.1 ● JACC ● JMS 1.1 ● JAXP 1.2 ● JTA 1.0 ● JavaMail 1.3 ● JAF 1.0 Atit Patumvan, Faculty of Management and Information Sciences, Naresuan University.
  • 17. 17 Introduction to Java EE (J2EE) Java EE 5 ● JAX-WS 2.0 & JSR 181 ● Java Persistence ● EJB 3.0 ● JAXB 2.0 ● JavaServer Face 1.2 – new to Platform ● JSP 2.1 – Unifcation with JFS 1.2 ● StAX – Pull Parser – new to Platform Atit Patumvan, Faculty of Management and Information Sciences, Naresuan University.
  • 18. 18 Introduction to Java EE (J2EE) J2EE Components Atit Patumvan, Faculty of Management and Information Sciences, Naresuan University.
  • 19. 19 Introduction to Java EE (J2EE) Java Servlet Atit Patumvan, Faculty of Management and Information Sciences, Naresuan University.
  • 20. 20 Introduction to Java EE (J2EE) What is Java Servlets ● Servlets are the Java Platform technology of choice for extending and enhancing web server. ● Servlets provide a component-based, platform-independent method for building web-based, without the performance limitation of CGI Programming. Request CGI1 Child for CGI1 Request CGI2 CGI Child for CGI2 Based Webserver Request CGI1 Child for CGI1 Request Servlet1 Servlet Based Server Request Servlet2 Servlet1 JVM Request Servlet1 Servlet2 Atit Patumvan, Faculty of Management and Information Sciences, Naresuan University.
  • 21. 21 Introduction to Java EE (J2EE) Java Servlets ● Servlets have access to entire family of Java APIs, including the JDBC to access enterprise databases. ● Servlet can also access a library of HTTP Specifc call and receive all the benefts of mature Java language, including portability, performance, reuseability and crash protection Atit Patumvan, Faculty of Management and Information Sciences, Naresuan University.
  • 22. 22 Introduction to Java EE (J2EE) Anatomy of a Servlet ● init() – the init() function is called when the servlet is initialized by the server. This often happens on the frst doGet() or doPut() call of the servlet. ● destroy() – this function is called when the servlet is being destroyed by the server, typically when the server process is being stopped. Source: http://java.sun.com/docs/books/tutorial/servlets/lifecycle/index.html Atit Patumvan, Faculty of Management and Information Sciences, Naresuan University.
  • 23. 23 Introduction to Java EE (J2EE) Anatomy of a Servlet ● doGet() – the doGet() function is called when the servlet is called via an HTTP GET. ● doPost() – the doPost() function is called when the servlet is called via an HTTP POST. ● POSTs are a good way to get input from HTML forms Source: http://java.sun.com/docs/books/tutorial/servlets/lifecycle/index.html Atit Patumvan, Faculty of Management and Information Sciences, Naresuan University.
  • 24. 24 Introduction to Java EE (J2EE) Anatomy of a Servlet ● HTTPServletRequest object ● HTTPServletResponse object ● Information about an HTTP ● Used for formatting an HTTP request response – Headers – Headers – Query String – Status codes – Session – Cookies – Cookies Source: http://java.sun.com/docs/books/tutorial/servlets/lifecycle/index.html Atit Patumvan, Faculty of Management and Information Sciences, Naresuan University.
  • 25. 25 Introduction to Java EE (J2EE) Demo Atit Patumvan, Faculty of Management and Information Sciences, Naresuan University.
  • 26. 26 Introduction to Java EE (J2EE) Sample Servlet: HelloWorld.java 01: package com.patumvan.atit.servlets; 02: 03: import java.io.*; 04: import javax.servlet.*; 05: import javax.servlet.http.*; 06: 07: public class HelloWorld extends HttpServlet { 08: 09: protected void processRequest(HttpServletRequest request, HttpServletResponse response) 10: throws ServletException, IOException { 11: response.setContentType("text/html;charset=UTF-8"); 12: PrintWriter out = response.getWriter(); 13: try { 14: out.println("<html>"); 15: out.println("<head>"); 16: out.println("<title>Servlet HelloWorld</title>"); 17: out.println("</head>"); 18: out.println("<body>"); 19: out.println("<h1>Servlet HelloWorld </h1>"); 20: out.println("</body>"); 21: out.println("</html>"); 22: } finally { 23: out.close(); 24: } 25: } : Atit Patumvan, Faculty of Management and Information Sciences, Naresuan University.
  • 27. 27 Introduction to Java EE (J2EE) Sample Servlet: HelloWorld.java : 30: @Override 31: protected void doGet(HttpServletRequest request, HttpServletResponse response) 32: throws ServletException, IOException { 33: processRequest(request, response); 34: } 35: 36: @Override 37: protected void doPost(HttpServletRequest request, HttpServletResponse response) 38: throws ServletException, IOException { 39: processRequest(request, response); 40: } 41: 42: @Override 43: public String getServletInfo() { 44: return "Short description"; 45: } 46: } Atit Patumvan, Faculty of Management and Information Sciences, Naresuan University.
  • 28. 28 Introduction to Java EE (J2EE) Sample Servlet: /WEB-INF/web.xml 01: <?xml version="1.0" encoding="UTF-8"?> 02: <web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"> 03: <servlet> 04: <servlet-name>HelloWorld</servlet-name> 05: <servlet-class>com.patumvan.atit.servlets.HelloWorld</servlet-class> 06: </servlet> 07: <servlet-mapping> 08: <servlet-name>HelloWorld</servlet-name> 09: <url-pattern>/HelloWorld</url-pattern> 10: </servlet-mapping> 11: <session-config> 12: <session-timeout> 13: 30 14: </session-timeout> 15: </session-config> 16: <welcome-file-list> 17: <welcome-file>index.jsp</welcome-file> 18: </welcome-file-list> 19: </web-app> Atit Patumvan, Faculty of Management and Information Sciences, Naresuan University.
  • 29. 29 Introduction to Java EE (J2EE) What is Java Server Pages (JSP)? Atit Patumvan, Faculty of Management and Information Sciences, Naresuan University.
  • 30. 30 Introduction to Java EE (J2EE) JSP – Java Server Pages ● JavaServer Pages technology uses XML-like tags and scriptlets written in the Java programming language to encapsulate the logic that generates the content for the page. ● Any and all formatting (HTML or XML) tags are passed directly back to the response page. ● By separating the page logic from its design and display and supporting a reusable component-based design, JSP technology makes it faster and easier than ever to build web-based applications Atit Patumvan, Faculty of Management and Information Sciences, Naresuan University.
  • 31. 31 Introduction to Java EE (J2EE) Sample JSP: /index.jsp 01: <%@page contentType="text/html" pageEncoding="UTF-8"%> 02: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" 03: "http://www.w3.org/TR/html4/loose.dtd"> 04: 05: <html> 06: <head> 07: <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> 08: <title>JSP Page</title> 09: </head> 10: <body> 11: <h1>Hello World!</h1> 12: </body> 13: </html> Atit Patumvan, Faculty of Management and Information Sciences, Naresuan University.
  • 32. 32 Introduction to Java EE (J2EE) EJB (Enterprise Java Beans) Atit Patumvan, Faculty of Management and Information Sciences, Naresuan University.
  • 33. 33 Introduction to Java EE (J2EE) What is EJB technology? ● A server-side component technology ● Easy development and deployment of Java technology-based application that are: ● Transactional, distributed, multi-tier, portable, scalable, secure, … Atit Patumvan, Faculty of Management and Information Sciences, Naresuan University.
  • 34. 34 Introduction to Java EE (J2EE) Why EJB Technology? ● Leverages the benefts of component-model on the server side ● Separates business logic from system code ● Container provides system services ● Provides framework for portable components ● Over different J2EE-compliant servers ● Over different operational environments ● Enables deployment-time confguration ● Deployment descriptor Atit Patumvan, Faculty of Management and Information Sciences, Naresuan University.
  • 35. 35 Introduction to Java EE (J2EE) EJB – Enterprise Java Beans ● Enterprise Java Beans are components that are deployed into containers ● The container provides services ● Loading / Initialization ● Transactions ● Persistence ● Communication with EJB clients ● Enterprise Naming Context (JNDI name space) Atit Patumvan, Faculty of Management and Information Sciences, Naresuan University.
  • 36. 36 Introduction to Java EE (J2EE) EJB Architecture Atit Patumvan, Faculty of Management and Information Sciences, Naresuan University.
  • 37. 37 Introduction to Java EE (J2EE) Enterprise Java Beans Enterprise JavaBeans Synchronous communication Asynchronous communication Session Bean Entity Bean Message-Driven Bean Stateless Stateful Bean managed Container managed Persistence Persistence (BMP) (CMP) Atit Patumvan, Faculty of Management and Information Sciences, Naresuan University.
  • 38. 38 Introduction to Java EE (J2EE) JMS (Java Message Services) Atit Patumvan, Faculty of Management and Information Sciences, Naresuan University.
  • 39. 39 Introduction to Java EE (J2EE) Java Messing Service (JMS) ● Messaging systems (MOM) provide ● De-coupled communication ● Asynchronous communication ● Plays a role of centralized post offce ● Benefts of Messaging systems ● Flexible, Reliable, Scalable communication systems ● Point-to-Point, Publish and Subscribe ● JMS defnes standard Java APIs to messaging systems Atit Patumvan, Faculty of Management and Information Sciences, Naresuan University.
  • 40. 40 Introduction to Java EE (J2EE) Connector Architecture Atit Patumvan, Faculty of Management and Information Sciences, Naresuan University.
  • 41. 41 Introduction to Java EE (J2EE) m x n Problem m n App SAP Server1 App EIS2 Server2 App EIS3 Server3 App EIS4 Server Atit Patumvan, Faculty of Management and Information Sciences, Naresuan University.
  • 42. 42 Introduction to Java EE (J2EE) Connector Architecture ● Defnes standard API for integrating J2EE technology with EIS systems ● CICS, SAP, PeopleSoft, etc. ● Before Connector architecture, each App server has to provide an proprietary adaptor for each EIS system ● m (# of App servers) x n (# of EIS's) Adaptors ● With Connector architecture, same adaptor works with all J2EE compliant containers ● 1 (common to all App servers) x n (# of EIS's) Adaptors Atit Patumvan, Faculty of Management and Information Sciences, Naresuan University.
  • 43. 43 Introduction to Java EE (J2EE) JAAS (Java Authentication & Authorization Services) Atit Patumvan, Faculty of Management and Information Sciences, Naresuan University.
  • 44. 44 Introduction to Java EE (J2EE) JAAS: Authentication ● Pluggable authentication framework ● Userid/password ● Smartcard ● Kerberos ● Biometric ● Application portability regardless of authentication schemes underneath ● JAAS provides authentication scheme independent API ● Authentication schemes are specifed Login confguration fle, which will be read by JAAS Atit Patumvan, Faculty of Management and Information Sciences, Naresuan University.
  • 45. 45 Introduction to Java EE (J2EE) JAAS Pluggable Authentication Atit Patumvan, Faculty of Management and Information Sciences, Naresuan University.
  • 46. 46 Introduction to Java EE (J2EE) Other J2EE APIs and Technologies Atit Patumvan, Faculty of Management and Information Sciences, Naresuan University.
  • 47. 47 Introduction to Java EE (J2EE) Java Naming and Directory Interface (JNDI) ● Utilized by J2EE applications to locate resources and objects in portable fashion ● Applications use symbolic names to fnd object references to resources via JNDI ● The symbolic names and object references have to be confgured by system administrator when the application is deployed. Atit Patumvan, Faculty of Management and Information Sciences, Naresuan University.
  • 48. 48 Introduction to Java EE (J2EE) Java Database Connector (JDBC) ● Provides standard Java programming API to relational database ● Uses SQL ● Vendors provide JDBC compliant driver which can be invoked via standard Java programming API. Atit Patumvan, Faculty of Management and Information Sciences, Naresuan University.
  • 49. 49 Introduction to Java EE (J2EE) J2EE is End to End Architecture Atit Patumvan, Faculty of Management and Information Sciences, Naresuan University.
  • 50. 50 Introduction to Java EE (J2EE) The J2EE Platform Architecture B2B Applications Existing Applications B2C Applications Web Services Enterprise Information Wireless Application Server Systems Applications Atit Patumvan, Faculty of Management and Information Sciences, Naresuan University.
  • 51. 51 Introduction to Java EE (J2EE) N-tear J2EE Architecture Web Tier EJB Tier Atit Patumvan, Faculty of Management and Information Sciences, Naresuan University.
  • 52. 52 Introduction to Java EE (J2EE) J2EE Deployment ● JAR – Java ARchive ● Java class fle ● EJBs ● WAR - Web ARchive ● Servlets ● JSPs ● EAR - Enterprise ARchive ● Contains other JARs and WARs to form an entire application ● Deployment descriptors ● XML Atit Patumvan, Faculty of Management and Information Sciences, Naresuan University.
  • 53. 53 Introduction to Java EE (J2EE) J2EE Server ● Application Server ● As of Sept ’01 - MetaGroup Survey by sales $$ – BEA Weblogic - 37% – IBM Websphere – 22% – Oracle – 11% – Iplanet – 5% – Other- 12% ● Open-source – Jboss – www.jboss.org ● Sun’s listing of J2EE compatible servers – http://java.sun.com/j2ee/compatibility.html Atit Patumvan, Faculty of Management and Information Sciences, Naresuan University.
  • 54. 54 Introduction to Java EE (J2EE) J2EE Servers ● Servlet / JSP Servers ● Most of the commercial application servers also include servlet / JSP support ● Open-Source – Apache Tomcat – Jetty ● Sun’s listing of servlet / JSP servers ● http://java.sun.com/products/servlet/industry.html Atit Patumvan, Faculty of Management and Information Sciences, Naresuan University.
  • 55. 55 Introduction to Java EE (J2EE) J2EE Development Tools ● Major IDEs support J2EE in some form ● Wizards for EJB / Servlets ● Custom editors for JSP ● Deployment descriptor support ● Deployment support for application servers ● Embedded servers for testing within IDE Atit Patumvan, Faculty of Management and Information Sciences, Naresuan University.
  • 56. 56 Introduction to Java EE (J2EE) Learning More... ● Enterprise JavaBeans – 3rd Edition ● Richard Monson-Haefel, O’Reilly © 2001 ● JBoss documentation ● http://www.jboss.org/online-manual/HTML/index.html ● Designing Enterprise Applications with the Java 2 Platform, Enterprise Edition ● Nicholas Kassem and the Enterprise Team, Addison Wesley © 2000 ● Core Servlets and JavaServer Pages (JSP) ● Marty Hall, Prentice Hall © 2000 Atit Patumvan, Faculty of Management and Information Sciences, Naresuan University.
  • 57. 57 Introduction to Java EE (J2EE) Learning More ... ● J2EE Tutorial - http://java.sun.com/j2ee/tutorial/1_3-fcs ● J2EE Developers Guide - http://java.sun.com/j2ee/sdk_1.2.1/techdocs/guides/ejb/html/DevGui deTOC.html ● JNDI - http://java.sun.com/products/jndi/tutorial/ ● JMS - http://java.sun.com/products/jms/tutorial/ ● JDBC - http://java.sun.com/docs/books/tutorial/jdbc ● Servlets - http://java.sun.com/docs/books/tutorial/servlets ● JSP - http://java.sun.com/products/jsp/docs.html ● JAXP - http://java.sun.com/xml/jaxp/dist/1.1/docs/tutorial Atit Patumvan, Faculty of Management and Information Sciences, Naresuan University.