Server
Server
Server只能有一個
Service
service包含一個或者多個connector和container
Conector:
connector用來為container接收請求
Engine
engine是頂層container
Host
host是虛擬主機
Context
context對應一個web application
最近抽時間研究了一下tomcat的源碼
Xml代碼
<Service name=
<Connector port=
maxThreads=
enableLookups=
debug=
disableUploadTimeout=
<Connector port=
enableLookups=
protocol=
<Engine name=
<Logger className=
prefix=
timestamp=
<Realm className=
debug=
<Host name=
unpackWARs=
xmlValidation=
<Logger className=
directory=
timestamp=
</Host>
</Engine>
</Service>
From:http://tw.wingwit.com/Article/program/Java/hx/201311/26270.html