please let me know the configuration or architecture how
tomcat used. give me a layman example
Answer / n.m.balaji
The Architecture of Tomcat
Tomcat 4 is a complete rewrite of its ancestors. At the core
of this rewrite is the Catalina servlet engine, which acts
as the top-level container for all Tomcat instances.
With this rewrite of Tomcat comes an entirely new
architecture composed of a grouping of application
containers, each with a specific role. The sum of all of
these containers makes up an instance of a Catalina engine.
The following code snippet provides an XML representation of
the relationships between the different Tomcat containers:
This instance can be broken down into a set of containers
including a server, a service, a connector, an engine, a
host, and a context. By default, each of these containers is
configured using the server.xml file, which we describe
later in more detail.
The first container element referenced in this snippet is
the <Server> element. It represents the entire Catalina
servlet engine and is used as a top-level element for a
single Tomcat instance. The <Server> element may contain one
or more <Service> containers.
The next container element is the <Service> element, which
holds a collection of one or more <Connector> elements that
share a single <Engine> element. N-number of <Service>
elements may be nested inside a single <Server> element.
The next type of element is the <Connector> element, which
defines the class that does the actual handling requests and
responses to and from a calling client application.
The third container element is the <Engine> element. Each
defined <Service> can have only one <Engine> element, and
this single <Engine> component handles all requests received
by all of the defined <Connector> components defined by a
The <Host> element defines the virtual hosts that are
contained in each instance of a Catalina <Engine>. Each
<Host> can be a parent to one or more Web applications, with
each being represented by a <Context> component.
The <Context> element is the most commonly used container in
a Tomcat instance. Each <Context> element represents an
individual Web application that is running within a defined
<Host>. There is no limit to the number of contexts that can
be defined within a <Host>.
|Is This Answer Correct ?||3 Yes||0 No|
What are the catalina's configuration files?
What is the tomcat default port?
What is the server server.xml configuration file?
What are tomcat threads?
Why webserver is used?
How to set the context path of a web application in tomcat 7.0
Can tomcat listen on multiple ports?
Why must the jdbc driver be put in tomcat_home/lib folder?
How to host files in a different folder and what is alias directive?
Tom is having XML document and that needs to be read on a daily basis. Which method of XML object is used to read this XML file?
What's the difference between apache and tomcat?
What is shutdown port in tomcat?