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 36663FA9E for ; Mon, 8 Apr 2013 15:10:54 +0000 (UTC) Received: (qmail 5677 invoked by uid 500); 8 Apr 2013 15:10:53 -0000 Delivered-To: apmail-tomcat-dev-archive@tomcat.apache.org Received: (qmail 5593 invoked by uid 500); 8 Apr 2013 15:10:53 -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 5584 invoked by uid 99); 8 Apr 2013 15:10:53 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 08 Apr 2013 15:10:53 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_IMAGE_ONLY_20,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of mcintoshj@gmail.com designates 209.85.212.43 as permitted sender) Received: from [209.85.212.43] (HELO mail-vb0-f43.google.com) (209.85.212.43) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 08 Apr 2013 15:10:47 +0000 Received: by mail-vb0-f43.google.com with SMTP id q12so3849591vbe.2 for ; Mon, 08 Apr 2013 08:10:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:date:message-id:subject:from:to :content-type; bh=L92+KN0/O8YAEg2dyRJsnHobY4eDgBxyOB3oMUY1sGI=; b=veNFBhMmiTxB3VmWZ0AQXwakg3cOEmGgBSUyYAe32m89Y6ZGK6TICVmFjhTYGBm3rx M6il1EAaraCrn9UpscaGvnxNoCUg0kbpp4RPIGCbcP0LIFZQBRR0Y3jEXZnQI59GYDGt RGmtJ7P8cIKybhzjgArGp5fyPACgiqiKUUlHFobA2WMTCLl5nOIMoIChfV8DXbYCnY48 AYL6uh+fgG8EQGx+jfKOYJ3cSBQdLa6qGYW+GWYSkClDBhImVOOqNPZcHdWTHhC/Hhlr 1KJO1nQVpiowmwRramtHTYS+jMr5SJpW5nwmi36FlvnektCT/IUvKWgYWvn8NU1ul6om 5x0A== MIME-Version: 1.0 X-Received: by 10.58.15.232 with SMTP id a8mr5748900ved.27.1365433826478; Mon, 08 Apr 2013 08:10:26 -0700 (PDT) Received: by 10.220.65.202 with HTTP; Mon, 8 Apr 2013 08:10:26 -0700 (PDT) Date: Mon, 8 Apr 2013 10:10:26 -0500 Message-ID: Subject: Patches to Tomcat - number of versions and how to add a JMX attribute From: Jason McIntosh To: dev@tomcat.apache.org Content-Type: multipart/alternative; boundary=047d7b5d45303143d404d9dad6fb X-Virus-Checked: Checked by ClamAV on apache.org --047d7b5d45303143d404d9dad6fb Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable 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=92m 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 Additionally, I=92m working on adding a patch to add a JMX attribute on wha= t =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? 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 patch code), but I=92m not seeing any place where that shows up in JConsole. Bas= ed on the mbeans descriptors, I would have thought it=92d have shown up under 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. Thanks!! --=20 Jason McIntosh http://mcintosh.poetshome.com/blog/ 573-424-7612 --047d7b5d45303143d404d9dad6fb--