Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@www.apache.org Received: (qmail 47346 invoked from network); 25 Apr 2005 17:38:13 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 25 Apr 2005 17:38:13 -0000 Received: (qmail 77728 invoked by uid 500); 25 Apr 2005 17:38:09 -0000 Delivered-To: apmail-jakarta-tomcat-user-archive@jakarta.apache.org Received: (qmail 77685 invoked by uid 500); 25 Apr 2005 17:38:08 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Users List" Reply-To: "Tomcat Users List" Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 77671 invoked by uid 99); 25 Apr 2005 17:38:08 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from web50906.mail.yahoo.com (HELO web50906.mail.yahoo.com) (206.190.38.126) by apache.org (qpsmtpd/0.28) with SMTP; Mon, 25 Apr 2005 10:38:07 -0700 Received: (qmail 605 invoked by uid 60001); 25 Apr 2005 17:37:31 -0000 Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; b=BFI+U5tFQhhK7QJr2FGL53GT6hRH0UOyZg8n/SqEHdFZ1eEZzAF42Qy/KHJ6c4h+gsS7/IdIoFNoqCv+9C8dXOiBktqVSxPyJvjM1xQLJzVE2ux6WgZnuJXznIO/J4crunXL3zjVegjUTOx2ur4b/A5Ko6rnD+uzwiJRWRrRJag= ; Message-ID: <20050425173731.602.qmail@web50906.mail.yahoo.com> Received: from [38.119.177.123] by web50906.mail.yahoo.com via HTTP; Mon, 25 Apr 2005 10:37:30 PDT Date: Mon, 25 Apr 2005 10:37:30 -0700 (PDT) From: Greg Johnson Subject: Automatic custom MBean registration? To: tomcat-user@jakarta.apache.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Does Tomcat have a mechanism for automatically registering custom MBeans? Currently I've written code that uses the MBeanServerFactory to locate the MBeanServer, and then I instantiate my objects, and register them with the MBeanServer. I've successfully used this technique, and can access my custom MBeans via the JMXProxy that is built into Tomcat. I've read and compared the Tomcat 5.0 and 5.5 documents at: http://jakarta.apache.org/tomcat/tomcat-5.0-doc/mbeans-descriptor-howto.html http://jakarta.apache.org/tomcat/tomcat-5.5-doc/mbeans-descriptor-howto.html I noticed that in 5.5 there is no longer a discussion of including an entry for ServerLifecycleListener. I do not understand the purpose of the mbeans-descriptor.xml. I assumed it was so that using this file, I could define what my MBean is, and have Tomcat load and register my MBean. But I couldn't get it to work. I created an mbeans-descriptor.xml file, and placed it in the package where my class files are located. But....then nothing happens. Am I wrong to think that based on the inclusion of this XML file that Tomcat will load and register my MBeans? Or do you have to do it the way I did.....by looking up the MBeanServer and then registering the beans through my own code? __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-user-help@jakarta.apache.org