Home Accessibility Courses Twitter The Mouth Facebook Resources Site Map About Us Contact
 
For 2023 (and 2024 ...) - we are now fully retired from IT training.
We have made many, many friends over 25 years of teaching about Python, Tcl, Perl, PHP, Lua, Java, C and C++ - and MySQL, Linux and Solaris/SunOS too. Our training notes are now very much out of date, but due to upward compatability most of our examples remain operational and even relevant ad you are welcome to make us if them "as seen" and at your own risk.

Lisa and I (Graham) now live in what was our training centre in Melksham - happy to meet with former delegates here - but do check ahead before coming round. We are far from inactive - rather, enjoying the times that we are retired but still healthy enough in mind and body to be active!

I am also active in many other area and still look after a lot of web sites - you can find an index ((here))
Server - Service - Engine - Host, Tomcat

A Tomcat Server can run one or more Services. Each Service comprises a number of Connectors and an Engine, which contains one or more Hosts.

You connect to a Tomcat Server via an appropriate connector, which defines the port number, the protocol, and various other connection parameters, and within the Tomcat server information is generated for the particular host (domain) that you're serving.

Q: Why would you want multiple services?

A: So that you can use a single copy of Tomcat to serve different hosts in different ways.

The top diagram shows you a server with five connectors and a single service, accessing 3 hosts. Any of the five connectors can access any of the five hosts, so you've a total of fifteen different routes to the data.

The lower diagram shows, again, 5 connectors and 3 hosts - but this time two of the connectors access a service who's engine looks after just one host, and the other three connectors access a second service that looks after two hosts. Result? Just ( 2 x 1 + 3 x 2) = 8 different routes to data.


Why might this be useful? Let's say that the single host with two connectors provided internet-accessible http and https services, and the other two hosts were accessible via ajp and http proxies, together wish a second http port for testing. And that's all you wanted - no crossovers, but also no need to run two complete Tomcats!
(written 2008-12-14, updated 2008-12-15)

 
Associated topics are indexed as below, or enter http://melksh.am/nnnn for individual articles
A651 - Web Application Deployment - Tomcat Overview
  [49] Business is the predominant user of Tomcat, Perl and Tcl - (2004-09-15)
  [498] Why is Tomcat called Tomcat? - (2005-11-17)
  [576] Why run two different web servers - (2006-01-25)
  [659] Web Application Components - (2006-03-28)
  [1265] Apache, Tomcat, Jakarta, httpd, web server - what are they? - (2007-07-13)
  [1771] More HowTo diagrams - MySQL, Tomcat and Java - (2008-08-24)
  [2016] Apache httpd and Apache Tomcat miscellany - (2009-01-30)
  [2077] Why put Apache httpd in front of Apache Tomcat - (2009-03-12)
  [2186] An FAQ on the Apache httpd and Apache Tomcat web servers, and on using them together - (2009-05-17)
  [2753] You do not just fly - that is just part of the journey - (2010-05-06)
  [3997] Servlet v JSP (Java Server Page). What is the difference? - (2013-02-06)
  [4434] Public training courses - upcoming dates - (2015-02-21)


Back to
URL rewriting with front and back servers
Previous and next
or
Horse's mouth home
Forward to
Christmas scenes and events
Some other Articles
Summary - Apache httpd build on Linux
Forwarding session and cookie requests from httpd to Tomcat
Port and Glasses
Christmas scenes and events
Server - Service - Engine - Host, Tomcat
URL rewriting with front and back servers
mod_proxy_ajp and mod_proxy_balancer examples
Predictive Load Balancing - PHP and / or Java
Getting hold of the wrong end of the stick
Quick Summary - PHP installation
4759 posts, page by page
Link to page ... 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96 at 50 posts per page


This is a page archived from The Horse's Mouth at http://www.wellho.net/horse/ - the diary and writings of Graham Ellis. Every attempt was made to provide current information at the time the page was written, but things do move forward in our business - new software releases, price changes, new techniques. Please check back via our main site for current courses, prices, versions, etc - any mention of a price in "The Horse's Mouth" cannot be taken as an offer to supply at that price.

Link to Ezine home page (for reading).
Link to Blogging home page (to add comments).

You can Add a comment or ranking to this page

© WELL HOUSE CONSULTANTS LTD., 2024: 48 Spa Road • Melksham, Wiltshire • United Kingdom • SN12 7NY
PH: 01144 1225 708225 • EMAIL: info@wellho.net • WEB: http://www.wellho.net • SKYPE: wellho

PAGE: http://www.wellho.net/mouth/1941_Ser ... omcat.html • PAGE BUILT: Sun Oct 11 16:07:41 2020 • BUILD SYSTEM: JelliaJamb