The Apache Tomcat Servlet/JSP Container

Apache Tomcat 5.5 Servlet/JSP 容器

Jaxmao Logo

Links

Top Level Elements

Connectors

Containers

Nested Components

Apache Tomcat Configuration Reference

服务器组件

Printer Friendly Version
print-friendly
version
Introduction

一个Server(服务器)元素代表整个Catalina servlet容器。因此,它必须是conf/server.xml配置文件里面的最外层元素。它的属性代表了这个servlet容器的总体特征。

Attributes
Common Attributes

Server(服务器)的所有实现支持下列属性:

AttributeDescription
className

要使用的implementation的Java类名。这个类必须执行org.apache.catalina.Server 接口。如果没有指定类名,将使用标准实现。

port

TCP/IP端口数目,这个服务器在此等待关闭。这个连接必须从正在运行这个Tomcat实例的相同的服务器计算机上被初始化。

shutdown

要关闭Tomcat,必须通过TCP/IP连接到指定的端口数目来被接受的命令字符串。

Standard Implementation

这个服务器的标准实现是org.apache.catalina.core.StandardServer。它支持下面其他属性(除了上面列出的通用属性外):

AttributeDescription
Nested Components

下列组件可以被嵌套在一个Server(服务器)元素里面:

Special Features

Server(服务器)元素没有任何专有特征。


Copyright © 1999-2006, Apache Software Foundation