Tomcat can be described as a series of different functional components that are combined together with well-defined rules. The following diagram represents the structure of Tomcat:
Let's try to understand the role of each component shown in the preceding diagram:
-
Server: A server represents a whole Catalina servlet container. The server.xml file represents all the characteristics and the configuration of a Tomcat installation.
-
Service: A service is a component inside the server that contains connectors that share a single container to process their incoming requests.
-
Engine: An engine receives and processes information coming in from different connectors and returns the output.
-
Host: This is the network or domain name that is used by the server. One server can have multiple hosts.
-
Contexts: This represents a web application. There...