Return-Path: Delivered-To: apmail-tomcat-dev-archive@www.apache.org Received: (qmail 9403 invoked from network); 6 May 2010 11:49:33 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 6 May 2010 11:49:33 -0000 Received: (qmail 4145 invoked by uid 500); 6 May 2010 11:49:32 -0000 Delivered-To: apmail-tomcat-dev-archive@tomcat.apache.org Received: (qmail 4059 invoked by uid 500); 6 May 2010 11:49:31 -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 4050 invoked by uid 99); 6 May 2010 11:49:31 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 May 2010 11:49:31 +0000 X-ASF-Spam-Status: No, hits=0.7 required=10.0 tests=RCVD_IN_DNSWL_NONE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [81.103.221.49] (HELO mtaout03-winn.ispmail.ntl.com) (81.103.221.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 May 2010 11:49:21 +0000 Received: from know-smtpout-4.server.virginmedia.net ([62.254.123.2]) by mtaout03-winn.ispmail.ntl.com (InterMail vM.7.08.04.00 201-2186-134-20080326) with ESMTP id <20100506114901.NHDX5841.mtaout03-winn.ispmail.ntl.com@know-smtpout-4.server.virginmedia.net> for ; Thu, 6 May 2010 12:49:01 +0100 Received: from [217.41.228.58] (helo=pc0155.bl45.btopenzone.com) by know-smtpout-4.server.virginmedia.net with esmtpa (Exim 4.63) (envelope-from ) id 1O9zZc-0001wc-TJ for dev@tomcat.apache.org; Thu, 06 May 2010 12:49:01 +0100 Message-ID: <4BE2ACAC.2060207@apache.org> Date: Thu, 06 May 2010 12:49:00 +0100 From: Mark Thomas User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.1.9) Gecko/20100317 Thunderbird/3.0.4 MIME-Version: 1.0 To: Tomcat Developers List Subject: Re: org.apache.catalina JMX descriptor modification References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Cloudmark-Analysis: v=1.1 cv=1ggfb5FlKZQUfF3vzm9UBYZ2uTfLsbs/8dSljwg5+mE= c=1 sm=0 a=Abz7Kfbj-acA:10 a=8nJEP1OIZ-IA:10 a=mV9VRH-2AAAA:8 a=sLfuhPt11ja1DING5zEA:9 a=gUBPxsu5c03sWeyEqKUA:7 a=fbfIasE6eHsC4qFbCPPKrwoqxBYA:4 a=wPNLvfGTeEIA:10 a=HpAAvcLHHh0Zw7uRqdWCyQ==:117 X-Virus-Checked: Checked by ClamAV on apache.org On 06/05/2010 03:45, buddhika chamith wrote: > Hi All, > > Please refer to https://issues.apache.org/bugzilla/show_bug.cgi?id=49234 for > a longer description about the descriptor issue in above package. The main > issue is the descriptor for Connector MBean tries to describe different > connectors with same set of attributes. So some attributes in the descriptor > doesn't make sense in one connector or the other (Http and Ajp). Connector > differences arise from attributes of ProtocolHandler class associated with > the connector and not the connector class it self. > > Currently there are seperate MBeans describing different protocol handler > attributes as well. This is in addition to some of their attributes being > partially exposed via associated Connector MBean. As far as I understood > following are the possibilities for improvements. > > 1. Remove descriptions of ProtocolHandler attributes from Connector MBeans > since they are described in related ProtocolHandler MBeans as well. We can > have a attribute reference to the ProtocolHandler objectname in the > Connector MBean to associate ProtocolHandler to the Connector so that they > can be retrieved by going through Connnector. > > 2. Extract out common attributes in both ProtocolHandlers and include them > in Connector MBean attributes. This way it can expose some ProtocolHandler > attributes directly while refering to the associated ProtocolHandler MBean > for other attributes. There are currently 5 different ProtocolHandlers in trunk: org.apache.coyote.http11.Http11Protocol org.apache.coyote.http11.Http11NioProtocol org.apache.coyote.http11.Http11AprProtocol org.apache.coyote.ajp.AjpProtocol org.apache.coyote.ajp.AjpAprProtocol I think I am leaning towards option 2. Have the Connector attributes in the connector MBean along with any common ProtocolHandler attributes and have separate ProtocolHandler MBeans that have all the attributes for the ProtocolHandler. The common attributes would then be accessible via the Connector MBean and the ProtocolHandler MBean. It would be worth adding some comments to the MBean descriptors so folks who come along later can figure out what is meant to be where. Mark --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org For additional commands, e-mail: dev-help@tomcat.apache.org