How Tomcat Works: A Guide to Developing Your Own Java Servlet Container

  • 5h 30m
  • Budi Kurniawan, Paul Deck
  • Brainy Software Corp.
  • 2004

How Tomcat Works is the only book that explains the internal workings of Tomcat, the open source project used by millions of Java developers. Unlike other Tomcat titles, it is unique because it does not simply covers the configuration or servlet development with Tomcat. Rather, this book is meant for advanced readers interested in writing their own Tomcat modules or in understanding more beyond servlet/JSP programming.

The authors of this book have cracked open Tomcat 4 and 5 and revealed the internal workings of each component. Upon understanding the contents of this book, you will be able to develop your own Tomcat components or extend the existing ones.

In particular, this book explains:

  • How to develop Java web servers
  • Whether or not more Tomcat creates more than one instance for each servlet
  • How Tomcat runs a servlet that implements the SingleThreadModel interface
  • Why you cannot change the value of request parameters.
  • The two main modules of a servlet container: connector and container
  • How to build your own connector or extend the existing ones
  • The four types of containers: engine, host, context, wrapper
  • How Tomcat manages sessions and how to extend the session manager in a distributed environment.
  • The class loader and how to create custom loaders
  • How Tomcat implements security and basic/form-based/digest authentication
  • How realms and login configuration work
  • How Tomcat processes the configuration file (server.xml) and converts the XML elements to Java objects using Digester
  • Tomcat's shutdown hook
  • JMX, Apache's Commons Modeler, and Tomcat JMX manageable resources

In this Book

  • A Simple Web Server
  • A Simple Servlet Container
  • Connector
  • Tomcat Default Connector
  • Container
  • Lifecycle
  • Logger
  • Loader
  • Session Management
  • Security
  • StandardWrapper
  • StandardContext
  • Host and Engine
  • Server and Service
  • Digester
  • Shutdown Hook
  • Tomcat Startup
  • Deployer
  • Manager Servlet
  • JMX-Based Management
SHOW MORE
FREE ACCESS