Chapter 5: Basic Tomcat Confi guration Attribute Description

Chapter 5: Basic Tomcat Confi guration Attribute Description Required? unpackWAR useNaming workdir wrapperClass Default is true. When set to true, Tomcat unarchives the WAR file into the docBase directory before running it. If this is set to false, Tomcat attempts to run the WAR file without first unarchiving it. Default is true. Creates and provides to applications a Java EE JNDI compatible InitialContext for resource lookup. This is required if a Web application uses database connections. See Chapter 13 for more information. Specifies a temporary working directory for servlets (and JSPs) that run within this host. These applications can get the temporary directory via a call to get the javax.servlet.context.tempdir property. If this is not specified, a directory under $CATALINA_HOME/work is used instead. Specifies a wrapper class that implements the org. apache.catalina.Wrapperinterface for wrapping servlets. The default implementation need not be changed in most cases, unless you are developing Tomcat server extensions. No No No No Depending on the application, you may not have to craft a custom to get it deployed. Many applications are designed to run without the need for a custom Context descriptor. The XML subelements that can be placed inside a element are described in the following table. Subelement Description How Many? Loader Manager Realm Resources WatchedResource Configures the class loader used to load classes for a Web application. See Chapter 9 for a thorough examination of class loaders used in Tomcat. Configures the session manager for the context. The session manager creates, manages, and persists server-side sessions. There is typically no need to replace the default implementation unless you are implementing persistent sessions, fail- over, and/or clustering. Chapters 6 and 17 have more information on clustering configurations. A Realm that can be accessed in the Web applications running within this Context. The resource manager used to obtain resources. The default parent container implementation of org.apache.naming .resources.FileDirContext is sufficient. Tells the autodeployer to redeploy the Web application if any of the specified resources have changed. 0 or 1 0 or 1 0 or 1 0 or 1 0 or 1

For high quality java hosting services please check java web hosting website.

Comments are closed.