Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 12889 invoked from network); 14 Sep 2008 14:19:48 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 14 Sep 2008 14:19:48 -0000 Received: (qmail 13728 invoked by uid 500); 14 Sep 2008 14:19:33 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 13699 invoked by uid 500); 14 Sep 2008 14:19:32 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 13687 invoked by uid 99); 14 Sep 2008 14:19:32 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 14 Sep 2008 07:19:32 -0700 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [193.252.22.157] (HELO smtp2.freeserve.com) (193.252.22.157) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 14 Sep 2008 14:18:34 +0000 Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf3113.me.freeserve.com (SMTP Server) with ESMTP id B7FBA7000084 for ; Sun, 14 Sep 2008 16:19:04 +0200 (CEST) Received: from smtp.homeinbox.net (unknown [91.109.156.78]) by mwinf3113.me.freeserve.com (SMTP Server) with ESMTP id 4F9DC7000082 for ; Sun, 14 Sep 2008 16:19:03 +0200 (CEST) X-ME-UUID: 20080914141903326.4F9DC7000082@mwinf3113.me.freeserve.com Received: from localhost (localhost [127.0.0.1]) by smtp.homeinbox.net (Postfix) with ESMTP id 9FF721A4305 for ; Sun, 14 Sep 2008 15:18:53 +0100 (BST) X-Virus-Scanned: Debian amavisd-new at homeinbox.net Received: from smtp.homeinbox.net ([127.0.0.1]) by localhost (server01.dev.local [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id x6m-+1M4qUDc for ; Sun, 14 Sep 2008 15:18:50 +0100 (BST) Received: from [192.168.0.4] (study01.dev.local [192.168.0.4]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.homeinbox.net (Postfix) with ESMTPSA id 7C3BF1A41DB for ; Sun, 14 Sep 2008 15:18:50 +0100 (BST) Message-ID: <48CD1D4A.60204@apache.org> Date: Sun, 14 Sep 2008 15:18:50 +0100 From: Mark Thomas User-Agent: Thunderbird 2.0.0.16 (Windows/20080708) MIME-Version: 1.0 To: Tomcat Users List Subject: Re: number of worker threads in Tomcat 6 References: <48CCC7F0.3030500@ice-sa.com> <48CD00EE.4010606@ice-sa.com> In-Reply-To: <48CD00EE.4010606@ice-sa.com> X-Enigmail-Version: 0.95.7 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org Andr� Warnier wrote: > Madhav wrote: >> Hi Andr�, >> >> Thanks for the reply, but the link is about configuring Tomcat which I >> know. >> What I'm looking for is how to get these information inside servlet, >> i.e. in >> java code. Please let me know that or point me to any resource if you >> know >> that. >> > I don't really know. > But I can imagine that, from within your servlet, you might be able to > "move back up the hierarchy" starting from e.g. the ServletRequest or > ServletContext, back up to the Host, the Engine, to the Connector, and > then to its properties, no ? > Or maybe that is not possible for security reasons ? You can do that. You'll probably need to make your app privileged to do it (I haven't tested it). Take a look at how the manager app does it for the status page. Mark --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org