O'Reilly logo

Tomcat 6 Developer's Guide by Damodar Chetty

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required