Web Technologies: Apache Tomcat
Web Technologies: Apache Tomcat
Web Technologies: Apache Tomcat
Apache Tomcat
Wasif Hamdani
Apache Tomcat
2
Apache Tomcat
3
Apache Tomcat
Apache Tomcat?
https://
www.youtube.com/watch?v=FVyX8WA8Ng4
4
Apache Tomcat
Tomcat Architecture
5
Apache Tomcat
6
Apache Tomcat
– Server
– Service
– Engine
– Host
– Connector
– Context
7
Apache Tomcat
Server
8
Apache Tomcat
Service
9
Apache Tomcat
Engine
– An Engine represents request processing pipeline for
a specific Service.
– As a Service may have multiple Connectors, the
Engine received and processes all requests from
these connectors, handing the response back to the
appropriate connector for transmission to the client.
– The Engine interface may be implemented to supply
custom Engines, though this is uncommon.
– The Engine may be used for Tomcat server clustering
via the jvmRoute parameter.
10
Apache Tomcat
Host
– A Host is an association of a network name, e.g.
www.yourcompany.com, to the Tomcat server.
13
Apache Tomcat
Components and Features of Apache Tomcat
14
Apache Tomcat
Catalina
– Catalina is Tomcat's servlet container.
15
Apache Tomcat
Catalina
– Different implementations allow Catalina to be
integrated into environments where such
authentication information is already being created
and maintained.
16
Apache Tomcat
Coyote
– Coyote is a Connector component for Tomcat that
supports the HTTP 1.1 protocol as a web server.
18
Apache Tomcat
Jasper
– Jasper is Tomcat's JSP Engine. Jasper parses JSP files to
compile them into Java code as servlets (that can be
handled by Catalina).
21
Apache Tomcat
Cluster
– This component has been added to manage large
applications.
24
Apache Tomcat
https://www.youtube.com/watch?v=sShmhvnuRYs
25
Apache Tomcat
Top Level Elements
• Server
• Service
26
Apache Tomcat
Server
– A Server element represents the entire Catalina servlet
container.
27
Apache Tomcat
28
Apache Tomcat
Service
– A Service element represents the combination of one
or more Connector components that share a single
Engine component for processing incoming requests.
29
Apache Tomcat
30
Apache Tomcat
Apache HTTP Server Vs Apache Tomcat Server
31
Apache Tomcat
Apache HTTP Server Vs Apache Tomcat Server
32
Question(s)?
33
Thank you
34