源码分析
Java · 8 notes
- 11.4 Connectorhistorical
Tomcat Connector accepts network requests and passes them to the adapter and container. These notes examine its structure through Boss/Worker responsibilities.
- Tomcat Startup Flowhistorical
Tomcat's startup.bat calls catalina.bat. These notes follow the scripts into the main class and trace container startup.
- Tomcat Request Processing: Source Viewhistorical
Tomcat startup includes init and start stages. These notes trace request-handling source code through the distinction between binding a port and accepting connections.
- Building Tomcat from Sourcehistorical
These notes record Maven configuration for Tomcat source and startup and debugging through the Bootstrap class.
- 11.8 Containerhistorical
A Tomcat Server can contain multiple Services, each combining Connectors and a Container. These notes organize the architecture by those levels.
- 11.9 Configuration-File Levelhistorical
Using a local Tomcat URL, these notes examine how configuration maps a request to its application and handling path.
- 11.10 LifeCyclehistorical
This note records Tomcat LifeCycle structures in diagrams as a reference for reading container-lifecycle source code.
- 11.11 Architecturehistorical
Tomcat serves as both an HTTP server and a Servlet container, handing requests to application classes. These notes examine its architecture through that division.