ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
info       Did you received any Funny E-Mails from your Friends and like to share with rest of our friends? Yeah!! you can post that stuff   HERE
Google
 
Categories  >>  Software  >>  Servers  >>  Tomcat
 
 


 

 
 Tomcat interview questions  Tomcat Interview Questions
 Apache interview questions  Apache Interview Questions
 Servers AllOther interview questions  Servers AllOther Interview Questions
Question
please let me know the configuration or architecture how 
tomcat used. give me a layman example
 Question Submitted By :: Novic
I also faced this Question!!     Rank Answer Posted By  
 
  Re: please let me know the configuration or architecture how tomcat used. give me a layman example
Answer
# 1
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:

 
<Server>
<Service>
<Connector />
<Engine>
<Host>
<Context>
</Context>
</Host>
</Engine>
</Service>
</Server>

 
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 Server

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 Service

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 Connector
 
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 Engine
 
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
parent service.

The Host

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
 
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 ?    2 Yes 0 No
N.m.balaji
 

 
 
 
Other Tomcat Interview Questions
 
  Question Asked @ Answers
 
What is the difference between Tomcat 4.1 and Tomcat 5.0?  1
what is webserver? why it is used ? Saahi3
if i delete my java class files after the compile?but it does not goes to the recyclebin.Now i want to get the java class file  2
what is tomcat?can we deploy a servelet in tomcat?  3
what is different between webserver and application server?  4
How web server handles multiple requests for same action class(Struts) concurrently? HCL1
please let me know the configuration or architecture how tomcat used. give me a layman example  1
1)What is the output of select * from tab 2)MAC stands for 3)Purpose of NAT Protocal Avaya6
Hi, When i'm starting startup.bat file of Tomcat server it isn't started. DOS window appears for a Second only. What should I do?  4
 
For more Tomcat Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com