HostConfig

An instance of this configurator class is added as a lifecycle listener of a Host component during its startup phase. This listener processes the start, stop, and periodic lifecycle events for its associated Host.

The primary function of this configurator is to deploy the web application contexts of its Host. In this section, we'll take a closer look at how the deployer handles this function.

Contexts and context fragments

A Context is represented by an org.apache.catalina.core.StandardContext instance. The deployment of a web application involves the instantiation of this class and initializing it with the properties of the<Context> element.

The<Context> element can either be found as a child of the<Host> element within the server.xml ...

Get Tomcat 6 Developer's Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.