Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@www.apache.org Received: (qmail 56253 invoked from network); 3 Oct 2005 13:05:04 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 3 Oct 2005 13:05:04 -0000 Received: (qmail 73379 invoked by uid 500); 3 Oct 2005 13:04:48 -0000 Delivered-To: apmail-jakarta-tomcat-user-archive@jakarta.apache.org Received: (qmail 73281 invoked by uid 500); 3 Oct 2005 13:04:46 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Tomcat Users List" Reply-To: "Tomcat Users List" Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 73232 invoked by uid 99); 3 Oct 2005 13:04:46 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Oct 2005 06:04:46 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [202.126.105.132] (HELO bottlenose.attitia.com) (202.126.105.132) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Oct 2005 06:04:48 -0700 Received: from [192.168.10.101] (walrus.attitia.com [10.18.10.11]) (authenticated bits=0) by bottlenose.attitia.com (8.12.11/8.12.11) with ESMTP id j93D4FHh009848 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Mon, 3 Oct 2005 23:04:18 +1000 Message-ID: <43412C1A.2060701@attitia.com> Date: Mon, 03 Oct 2005 23:03:22 +1000 From: Kyle User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Tomcat Users List Subject: Re: Getting tomcat instance information into webapp References: <43407585.20102@verizon.net> <43407B05.3070605@attitia.com> <43407DD7.1030803@verizon.net> In-Reply-To: <43407DD7.1030803@verizon.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N David Kerber wrote: > > Then how do I isolate the instances of tomcat (and their respective > server.xml's? Do I need multiple installations of tomcat on my disk? > Start each 'instance' of tomcat with separate CATALINA_BASE env. vars. This enables a different server.xml for each instance thereby allowing a different connector port for each instance. As for the webapp, you can still re-use the same code via the docBase and appBase variables by specifiying absolute paths. (read RUNNING.TXT with your install) Does that work? Alternatively, IF you can use the scenario where the users are connecting to the same app, but under different sub-directories of your domain, e.g.; www.example.com/appA www.example.com/appB www.example.com/appC Then, you can still have different contexts and/or realms (if necessary). But in this scenario, you wouldn't need multiple instances running on different ports would you? Just the one instance listening on the one port, with TC (as far as TC is concerned) serving up different webapps which all happen to point to the same absolute docBase/appBase, just with different jdbc connection params in their respective contexts connecting them to their relevant database. Surely, that's an acceptable solution if the only difference in your scenario is to have them connecting on different ports. This way there are also less ports open if in a secure environment. USUAL DISCLAIMER: etc. etc. etc. i.e. I may not have the faintest idea of what I'm talking about and everything written above should be taken with a pinch of salt until proven to work AND perform in your environment. --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-user-help@jakarta.apache.org