NOTE

11.8 Container

Overview of the Tomcat container hierarchy, server.xml, and class diagram.

JavaCreated Updated 1 min readhistorical

This is a historical learning note and may contain outdated or incomplete understanding.

Overview

  • One Server can have multiple Services.
  • One Service consists of multiple Connectors and one Container.
  • One Container consists of one Engine.
  • One Engine has multiple Hosts [virtual sites].
  • One Host consists of multiple Contexts [applications].
  • One Context consists of multiple Wrapper Servlets.

server.xml

We can also see this from server.xml and the source code.

Class Diagram

Discussion

Sign in with GitHub to comment. Discussions are stored as GitHub Issues.View on GitHub