Return-Path: Delivered-To: apmail-tomcat-dev-archive@www.apache.org Received: (qmail 42255 invoked from network); 12 Sep 2010 09:53:17 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 12 Sep 2010 09:53:17 -0000 Received: (qmail 22125 invoked by uid 500); 12 Sep 2010 09:53:16 -0000 Delivered-To: apmail-tomcat-dev-archive@tomcat.apache.org Received: (qmail 21504 invoked by uid 500); 12 Sep 2010 09:53:14 -0000 Mailing-List: contact dev-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Developers List" Delivered-To: mailing list dev@tomcat.apache.org Received: (qmail 21489 invoked by uid 99); 12 Sep 2010 09:53:13 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 12 Sep 2010 09:53:13 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of wesley.acheson@gmail.com designates 209.85.216.173 as permitted sender) Received: from [209.85.216.173] (HELO mail-qy0-f173.google.com) (209.85.216.173) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 12 Sep 2010 09:53:06 +0000 Received: by qyk34 with SMTP id 34so1074130qyk.18 for ; Sun, 12 Sep 2010 02:52:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type; bh=RbuNpQEPeCY4GkJul7WYhrb5N5/aAyjTk6g18O33Tq0=; b=Q7LInXCX/sr1JjVdnv2odwFHGgYJz50LjowrqGht1e81rWQZry2q6H0GqUcJb6xQ+i c3GxKt1Huv+1WU74lvdCNxY1lg5Wc1/TrNV6Qf9du7dejRNlMg4RDpCLKenny8k3h664 Dy5XwMw68Hjxt3271JQu/OiFZzIBqogmG5Mrg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=mp4sswcQ1RBI+/Qgj2sthaWvyV9M/HrB5983ZBmh5q6vKVPN0RZHBld9l1KeHBjJqX 72M4nsuD91oks58ssopV0PSvr4cKbeJZI+78iRSBJaeXZ1Ey9wXk8Vp/vNHMXvuaajzi udOGRqmO3wzdLHCYmD4cC+6XuvzmsdSyM9ybQ= MIME-Version: 1.0 Received: by 10.224.3.6 with SMTP id 6mr1813774qal.389.1284285166011; Sun, 12 Sep 2010 02:52:46 -0700 (PDT) Received: by 10.229.20.140 with HTTP; Sun, 12 Sep 2010 02:52:45 -0700 (PDT) In-Reply-To: <4C8C9D4F.6000503@apache.org> References: <4C8C9D4F.6000503@apache.org> Date: Sun, 12 Sep 2010 11:52:45 +0200 Message-ID: Subject: Re: Adding Host node to server.xml From: Wesley Acheson To: Tomcat Developers List Content-Type: text/plain; charset=ISO-8859-1 On Sun, Sep 12, 2010 at 11:28 AM, Mark Thomas wrote: > On 12/09/2010 09:59, Wesley Acheson wrote: >> does (Service) host.getParent() make sense, If so is service name both >> compulsory and guaranteed to be unique? > > Get the correct engine the way host manager does (or something similar). > You then want engine.getService() > > Yes, you can safely assume service names are a) non-null and b) unique. > > Mark > I may be being blind, but I don't find any references to service for the HostManager. The engine is found by host.getParent(). I assume (okay I missed out a node there) Its okay for (Service) engine.getService(). --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org For additional commands, e-mail: dev-help@tomcat.apache.org