-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Jeffrey,
On 3/10/14, 10:26 AM, Jeffrey Janner wrote: >> -----Original Message----- From: Leo Donahue >> [mailto:donahu...@gmail.com] Sent: Friday, March 07, 2014 9:44 >> AM To: users@tomcat.apache.org Subject: The Service Component >> >> Who uses more than one Service in their server.xml and why? I >> get that you can have multiple Connectors if you have multiple >> Service components but why use multiple connectors? >> >> Are there any docs on the use cases for these features? >> > > Hi Leo, I may be the only person on this list who does this > consistently. I use it as an alternative method of virtual hosting, > i.e. each host gets its own <Service> and related sub-structure. > The real reason? The default host has to be set to something, and > I don't want to maintain some generic host to catch those that come > in. Since I'm running an SaaS environment, really more ASP, a > business requirement is that each host appear to the outside world > as a unique physical host, so two customers don't get the same IP > address. I could add <Alias> tags for the IP address and all know > variations of the hostname, but there's nothing to keep some yahoo > admin at a customer site from configuring a DNS entry on an > internal DNS server with some name I'm not expecting. Therefore, > each <Engine> in each <Service> gets a defaultHost entry pointing > to its one and only <Host> entry. I'm interested in this use case. Since you have to maintain a <Connector> for every IP address already, how is that different from having a single <Connector> with a bunch of <Alias> elements? How are those different? Or is it that you need application isolation in the first place, so this is the best way to do it in a single JVM? > As an added benefit, if I find I need to move a customer from a > shared Tomcat setup to a unique Tomcat, all I need to do is set up > a new blank Tomcat and move the <Service> structure from one Tomcat > to another. Naturally, there's more work needed if I find I need to > give them their own physical server, but that's to be expected. In > general, not counting any hardware setup, I can move a host to > another tomcat instance with < 2 minutes downtime. Nice. - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQIcBAEBCAAGBQJTHdcFAAoJEBzwKT+lPKRYL54P/RG5CJv+t89SlOxy2fb63djx h68V38Lv8PWBdj4TX9CQ05NlQOQvblqOuy+W7q9wmh+oCf3Fb6fWQaq1nZIc0+aG 5N8gCEQydIrd21XxvBF4FhXv60ZZiyhkAJRx3fXp0Mmf3BUTb0cR658DRhOEzytf 0zzoELsAdgikgwybCR30u0vuy4OfcjqwZ/aqtIdvTY1/Jx/kw8ztAk+iuY9n9QOU Iq/PPm5eZR46p9+4yxpyBUMZaDXFm012ItGGJKWIx/Xj2iERzNXDWYwF7JdNwXim GH8NWG7cLZNFixCmMiF9jMKalm7/3Ox8L7YufOeAZzIvTL13kVpK8A2ajnESmDrn r23igjGx4XRFgkBSDQCRDmStISKUjNiDHTbUQcOGi/ZyxSOvfLZRe2V6RNsMpsMT IxzhZE2YETZ4t+Eadywp+1BAj50o8oWJP3gAvwWFODe8n79MgpT++jkh+IFFO33U tNwcuhDuzh6LIyuNNrrD1PBvuOIAs350NKDdX4VaCys1fA4Kez7zup1uVgfIzprp mNjuUWlG3OWFojqb3ph450L8CFvnYYIah6yQcwvOG1vTq1jA72Kg9QG41pQax4nd ttHX67gL4kCY0VyIpgNS7LPxE90d3quJNdpE1c/5Iqsw3Wvj3LL2I6jz55kLt8Uu dCYEBEeo2GWmcP7AXxko =Inu5 -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org