Computer Networks Webcommerce by Linnea Reppa Douglas Martindale Lev Shalevich - PowerPoint PPT Presentation

1 / 69
About This Presentation
Title:

Computer Networks Webcommerce by Linnea Reppa Douglas Martindale Lev Shalevich

Description:

Need a Web server that supports the Java Servlet and JavaServer Pages APIs. ... Servlets are standard, server-side Java application components that act as a ... – PowerPoint PPT presentation

Number of Views:44
Avg rating:3.0/5.0
Slides: 70
Provided by: levsha
Category:

less

Transcript and Presenter's Notes

Title: Computer Networks Webcommerce by Linnea Reppa Douglas Martindale Lev Shalevich


1
Computer NetworksWebcommerce byLinnea
ReppaDouglas MartindaleLev Shalevich
2
Part I
3
The E-Boutique Commerce Site
  • Three tier architecture using Java Server
    technologies

JSP Pages
Java Servlet
Web Client (HTML)
HTTP Request
Java Beans
HTTP Response
CGIScript
4
(No Transcript)
5
Java Server Technologies
  • Java Servlets
  • JavaServer Pages
  • JavaBeans
  • Need a Web server that supports the Java Servlet
    and JavaServer Pages APIs. The E-Boutique site
    uses the Apache Tomcat server
    (available at http//jakarta.apache.org).
  • Run over standard HTTP

6
Java Servlet Technology
  • Servlets are standard, server-side Java
    application components that act as a middle layer
    between Web clients and enterprise applications
    and/or databases.
  • Purpose is to accept an HTTP request, perform any
    necessary processing, which may involve invoking
    other applications and/or objects, and format an
    HTML reply.
  • All processing occurs in the server.
  • Analogous to Common Gateway Interface (CGI)
    programs, but provide superior scalability,
    portability, and convenience.

7
Java Servlet Technology(Continue)
  • With traditional CGI, the operating system
    creates a new process for every HTTP request. A
    Servlet gets loaded into the Web server's memory
    the first time it is requested, and subsequent
    requests call the servlet instance already in
    memory with threads dispatched to handle
    individual requests. Because the compiled
    servlet is stored in memory, fewer system
    resources are needed at run-time and system
    response is very fast.
  • Servlets come with an infrastructure for
    automatically parsing HTML form data, reading and
    setting HTTP headers, and tracking sessions.

8
Java Servlet Technology(Continue)
  • The HttpServletRequest object automatically
    created by the Servlet represents a session
    object. The session object can be used to store
    any type of object, including beans, and is
    identified by a unique session key. This feature
    allows for the persistence of data throughout the
    session.
  • The HttpServletRequest also contains the form
    data of the most recently submitted HTTP form.
    The servlet engine takes care of all form field
    parsing.

9
Java Server Pages (JSP)
  • JSP technology was developed as a method to
    separate dynamic content, specific to the
    processing of a user request, from static HTML
    page design.
  • JSP pages mix HTML and JSP-specific syntax. JSP
    pages are composed of HTML written in the normal
    manner, and Java code enclosed in special tags
    for the dynamic content.
  • A JSP page is in fact a servlet JSP class files
    extend the HttpJspBase class, which in turn
    implements the Servlet interface.

10
Java Server Pages (JSP)(Continue)
  • The advantage of this architecture is that there
    is very little processing logic within the
    presentation page itself it is simply
    responsible for retrieving the JavaBean objects
    previously created by the servlet controller,
    extracting the bean information for dynamic
    content, and inserting the content within
    standard HTML components.
  • Like servlets, provide a very efficient solution
    because they're only loaded once as an operating
    system process and individual requests are
    handled via threads.

11
JavaBeans
  • JavaBeans provide an architecture for building
    and using Java components.
  • JavaBean components are nothing but Java classes
    that follow a well-defined design/naming pattern.
    A bean encapsulates its properties by declaring
    them private and provides public access (get/set)
    methods for reading and modifying their values.
  • Persistence, a key feature of JavaBeans, enables
    a bean to save its state.
  • The use of JavaBeans with Servlet and JSP
    technology is especially advantageous because
    beans can act as data encapsulators to allow data
    to persist, enabling collaboration between
    servlets JSP pages.

12
Part II
13
Results of WebStress on E-boutique's OrderProc
Servlet (before server maintenance)
14
(No Transcript)
15
Median Response Time Related to Simultaneous
Users (Order Processing Servlet before Server
Maintenance)
16
Mean Response Time Related to Simultaneous Users
(Order Processing Servlet before Server
Maintenance
17
Median Response Time Related to Simultaneous
Users (Order Processing Servlet before Server
Maintenance)-Filtered Responses
18
Mean Response Time Related to Simultaneous Users
(Order Processing Servlet before Server
Maintenance)-Filtered Responses
19
Error Rates for Order Processing Servlet Before
Server Maintenance
20
Comparison of Median Responses vs. Filtered
Median Response (Order Processing Servlet before
Server Maintenance)
21
Comparison of Mean Responses vs. Filtered Mean
Responses (Order Processing Servlet before Server
Maintenance)
22
Results of WebStress on E-boutique's OrderProc
Servlet (after server maintenance)
23
(No Transcript)
24
Median Response Time Related to Simultaneous
Users (Order Processing Servlet after Server
Maintenance)
25
Mean Response Time Related to Simultaneous Users
(Order Processing Servlet after Server
Maintenance)
26
Median Response Time Related to Simultaneous
Users (Order Processing Servlet after Server
Maintenance)-Filtered Responses
27
Mean Response Time Related to Simultaneous Users
(Order Processing Script after Server
Maintenance)-Filtered Errors
28
Error Rates for Order Processing Servlet after
Server Maintenance
29
Comparison of Median Responses vs. Filtered
Median Responses (Order Processing Servlet after
Server Maintenance)
30
Comparision of Mean Responses vs. Filtered Mean
Responses (Order Processing Script after Server
Maintenance)
31
Results of WebStress on E-boutique's HTML(before
server maintenance)
32
(No Transcript)
33
Median Response Time Related to Simultaneous
Users (E-Boutique HTML before Server Maintenance)
34
Mean Response Time Related to Simultaneous Users
(E-Boutique HTML before Server Maintenance)
35
Median Response Time Related to Simultaneous
Users (E-Boutique HTML before Server
Maintenance)-Filtered Responses
36
Mean Response Time Related to Simultaneous Users
(E-Boutique HTML before Server
Maintenance)-Filtered Responses
37
Error Rates of E-Boutique HTML before Server
Maintenance
38
Comparison of Median Responses vs. Filtered
Median Responses (E-Boutique HTML before Server
Maintenance)
39
Comparison of Mean Responses vs. Filtered Mean
Responses (E-Boutique HTML before Server
Maintenance)
40
Results of WebStress on E-boutique's home
page(after server maintenance)
41
(No Transcript)
42
Median Response Time Related to Simultaneous
Users (E-Boutique HTML after Server Maintenance)
43
Mean Response Time Related to Simultaneous Users
(E-Boutique HTML after Server Maintenance)
44
Median Response Time Related to Simultaneous
Users (E-Boutique HTML after Server
Maintenance)-Filtered Responses
45
Mean Response Time Related to Simultaneous Users
(E-Boutique HTML after Server Maintenance)-Filtere
d Responses
46
Error Rates for E-Boutique HTML after Server
Maintenance
47
Comparison of Median Responses vs. Filtered
Median Responses (E-Boutique HTML after Server
Maintenance)
48
Comparison of Mean Responses vs. Filtered Median
Responses (E-Boutique HTML after Server
Maintenance)
49
Results of WebStress on E-boutique's Streaming
Media (RealServer)
50
(No Transcript)
51
Median Response Time Related to Simultaneous
Users (RealServer Streaming Media)
52
Mean Response Time Related to Simultaneous Users
(RealServer Streaming Media)
53
Mean Response Time vs. Median Response Time -
RealServer Streaming Media
54
Various Graphs
55
Comparison of Median of All Results With Server
Maintenance (Order Processing Servlet)
56
Comparison of all Mean Responses Regarding
Server Maintenance (Order Processing Servlet)
57
Comparison of Median Results With Server
Maintenance (Order Processing Servlet) - Filtered
Responses
58
Comparison of Mean Results With Server
Maintenance (Order Processing Servlet) -
Filtered Responses
59
Comparison of Median of All Results With Server
Maintenance (E-Boutique HTML)
60
Comparison of Mean of All Results With Server
Maintenance (E-Boutique HTML)
61
Comparison of Median Results With Server
Maintenance (E-Boutique HTML) - Filtered
Responses
62
Comparison of Mean Results With Server
Maintenance (E-Boutique HTML) - Filtered
Responses
63
Comparison of Error Rates for the Order
Processing Servlet Regarding Server Maintenance
64
Comparison of Error Rates for E-Boutique HTML
Regarding Server Maintenance
65
Comparison of Best Error Rates in Each Test
(Servlet, HTML, Streaming Media)
66
Comparison of Best Median Response Times in Each
Test
67
Comparison of Best Mean Response Times in Each
Test
68
Comparison of Best Median Response Times in Each
Test (Filtered Responses)
69
Comparison of Best Mean Response Times in Each
Test (Filtered Responses)
Write a Comment
User Comments (0)
About PowerShow.com