PacktLib: Tomcat 6 Developer's Guide

Tomcat 6 Developer's Guide

Credits

About the author

Acknowledgement

About the reviewers

Preface

Introduction to Tomcat

What's the story behind Tomcat?

What exactly is Tomcat?

Why this book?

Gathering our tools

Summary

Servlet API Overview

Java Community Process

Java Enterprise Edition platform

Hypertext Transfer Protocol (HTTP)

What is the Servlet API?

Summary

Servlet Container Overview

Component taxonomy

Summary

Starting Up Tomcat

Using scripts

Summary

The Server and Service Components

Setting up your project

JNDI service

StandardServer

StandardService

Summary

The Connector Component

Connector classification

Summary

The Engine Component

Containers

Nested components

Engine

Implementation details

Pipeline

Valve

Summary

The Host Component

Virtual hosts

Configuring a host

StandardHost

HostConfig

Examples of name-based virtual hosting

StandardHostValve

ErrorReportValve

Summary

The Context Component

Aspects of the Context component

Web application resources

Shared library mechanism

URLs and protocol handlers

Java class loading

Implementing a custom class loader

Making a class available

Context initialization and startup

Request processing

Hot deploying a context

Context example

Summary

The Wrapper Component

StandardWrapper

Servlet lifecycle

Mappers

Request processing

Filters

Request dispatcher

Examples

Summary

The Manager Component

Session propagation mechanisms

Session

Manager

Summary