Return-Path: X-Original-To: apmail-tomcat-dev-archive@www.apache.org Delivered-To: apmail-tomcat-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 0119FF6C6 for ; Mon, 8 Apr 2013 18:25:26 +0000 (UTC) Received: (qmail 23027 invoked by uid 500); 8 Apr 2013 18:25:25 -0000 Delivered-To: apmail-tomcat-dev-archive@tomcat.apache.org Received: (qmail 22960 invoked by uid 500); 8 Apr 2013 18:25:24 -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 22951 invoked by uid 99); 8 Apr 2013 18:25:24 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 08 Apr 2013 18:25:24 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of knst.kolinko@gmail.com designates 209.85.214.180 as permitted sender) Received: from [209.85.214.180] (HELO mail-ob0-f180.google.com) (209.85.214.180) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 08 Apr 2013 18:25:19 +0000 Received: by mail-ob0-f180.google.com with SMTP id un3so1841093obb.25 for ; Mon, 08 Apr 2013 11:24:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:content-type:content-transfer-encoding; bh=feqNX1tzSIVr2pH4tpCjBcOdn1V5GwTS6F/crrQWe6o=; b=g3XwN9LkzpwTDDkumIntVL2pTsuEuIMFHbshkEgoYb+gxqzd53oe9diF6JRo1rUHPe fxNtChV2+LDqrGegCeVYc0YcTHsHQltZgIQw8u+ggXZDg5pgOXpnE37lLnUHjnWwwM9p ftw88EawTRtVu1J12uvLdoE9Wuj2g0K+gjop8WKHKNImN+rQ8XZp6QNqQPwdSjxbH8dG PgcPC2d/8WY7sPaWi7VcyexH4WJbvymsqgyBl+G5ANSR2c5oLaIPUEuluJxvKroC3fbc NBIMXdI2zZl8Q2/3zfP2gFCl1SV9TQ0wtHgY5z0F+nlWd1mstUIJm2G2egpABTKDgu2J 7Yig== MIME-Version: 1.0 X-Received: by 10.60.102.73 with SMTP id fm9mr4173819oeb.110.1365445499107; Mon, 08 Apr 2013 11:24:59 -0700 (PDT) Received: by 10.76.153.38 with HTTP; Mon, 8 Apr 2013 11:24:59 -0700 (PDT) In-Reply-To: References: Date: Mon, 8 Apr 2013 22:24:59 +0400 Message-ID: Subject: Re: Patches to Tomcat - number of versions and how to add a JMX attribute From: Konstantin Kolinko To: Tomcat Developers List Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org 2013/4/8 Jason McIntosh : > Devs: > I wanted to get some input on this patch. It adds the ability to specify > how many versions to remove, when undeployOldVersions is set and parallel > deployments occur. This is my first attempt at patching tomcat, and I=92= m > not totally sure I=92ve got everything, have met tomcat standards, etc. > Specifically, I'm not sure if I should really add more attributes to the > interface or not, as that could break some things if the API was set for > 7.0. Here=92s the bugzilla link where I submitted this: > > https://issues.apache.org/bugzilla/show_bug.cgi?id=3D54808 > 1. Do not use tab characters. All indenting is done using spaces. Most of the code uses "Java formatting" as specified by Sun and as is available in many IDEs, but using spaces instead of tabs+spaces combo. http://tomcat.apache.org/getinvolved.html 2. BUILDING.txt mentions how to run Checkstyle against the source code. There may be several quirks. E.g. current trunk does not allow trailing whitespace on lines. I usually configure Eclipse IDE to display whitespace characters in Editor. 3. When submitting a patch, please mention for what branch of Tomcat it is. > > Additionally, I=92m working on adding a patch to add a JMX attribute on w= hat > =93current=94 versions of any given application should be responding to > requests (tied to parallel deployments as well). Any advice on where in > the code to start on this? A getter/setter and several lines in mbeans-descriptors.xml file. I do not understand your description of the feature that you are trying to add (=93current=94 versions etc.). Maybe you can explain it in more details? > I=92m having a hard time finding where the > parallel deployment process kicks in and how to register the JMX > attribute. For example, I saw the HostConfig class (where I added my pat= ch > code), but I=92m not seeing any place where that shows up in JConsole. B= ased > on the mbeans descriptors, I would have thought it=92d have shown up unde= r > Catalina/Listener but there is no such section in JConsole. I could add = a > new attribute to the Host JMX definitions to track this, but not sure > that=92s the right place either. Wanted to get some advice on this. StandardHost and StandardContext should show up. If I have "examples##1" and "examples##2" then with current Tomcat trunk I see in JConsole Catalina -> Host -> localhost Catalina -> WebModule -> //localhost/examples##1 Catalina -> WebModule -> //localhost/examples##2 Best regards, Konstantin Kolinko --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org For additional commands, e-mail: dev-help@tomcat.apache.org