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 servl 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 ...Continua Nascondi