码迷,mamicode.com
首页 > 其他好文 > 详细

Tomcat Architect

时间:2018-02-09 17:18:09      阅读:115      评论:0      收藏:0      [点我收藏+]

标签:list   entry   eal   image   struct   mil   pip   protocol   real   

Tomcat Architect

Hierarchy of nested tag representing different components in server.xml.

1 <Server>

 2     <Service>

 3         <Connector />

 4         <Connector />

 5         <Engine>

 6             <Host>

 7                 <Context />

 8             </Host>

 9         </Engine>

10     </Service>

11 </Server>

 

Deployment structure of tomcat

 

 技术分享图片

Internal structure of Engine container.

 技术分享图片

 

GLOSSARY

Server:  It is not a container, it’s listened by a standalone port.

Listener:  performs actions when some defined events occur

Global Naming Resources: define some initial instance created in JNDI way.

JNDI: Java Naming Directory Interface

Service: it isn’t a container, subcomponents are connectors and engine.

Connector: endpoint by which requests are received and responses are returned.

        HTTP Connector, meeting HTTP protocol , which handle request pipeline from browser;

         AJP Connector, meeting AJP protocol.

Engine: the entry point that processes every request.

Host: configure one more host when cluster deployment is required

Context: represent a web application, a host can deploy one more contexts (web application)

Valve: similar with ‘filter’, it processes common business or print log on processing request pipeline with formatted form. So the instance it works on is only container.

Realm: could be understood as ‘domain or group role’, it restrict access to ‘container’, such as engine, host, context.

Tomcat Architect

标签:list   entry   eal   image   struct   mil   pip   protocol   real   

原文地址:https://www.cnblogs.com/daniel123/p/8435936.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!