Return-Path: Delivered-To: apmail-activemq-camel-dev-archive@locus.apache.org Received: (qmail 365 invoked from network); 5 Jun 2008 09:29:23 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 5 Jun 2008 09:29:23 -0000 Received: (qmail 6824 invoked by uid 500); 5 Jun 2008 09:29:26 -0000 Delivered-To: apmail-activemq-camel-dev-archive@activemq.apache.org Received: (qmail 6753 invoked by uid 500); 5 Jun 2008 09:29:26 -0000 Mailing-List: contact camel-dev-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: camel-dev@activemq.apache.org Delivered-To: mailing list camel-dev@activemq.apache.org Received: (qmail 6742 invoked by uid 99); 5 Jun 2008 09:29:26 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 Jun 2008 02:29:26 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 Jun 2008 09:28:38 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 50DFF234C131 for ; Thu, 5 Jun 2008 02:29:00 -0700 (PDT) Message-ID: <1856257668.1212658140330.JavaMail.jira@brutus> Date: Thu, 5 Jun 2008 02:29:00 -0700 (PDT) From: "Willem Jiang (JIRA)" To: camel-dev@activemq.apache.org Subject: [jira] Closed: (CAMEL-508) Some issues with creating MBeanServer In-Reply-To: <1970840616.1210622503501.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/activemq/browse/CAMEL-508?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Willem Jiang closed CAMEL-508. ------------------------------ > Some issues with creating MBeanServer > ------------------------------------- > > Key: CAMEL-508 > URL: https://issues.apache.org/activemq/browse/CAMEL-508 > Project: Apache Camel > Issue Type: Bug > Components: camel-core > Reporter: William Tam > Assignee: Willem Jiang > Fix For: 1.4.0 > > Attachments: patch.txt > > > In InstrumentationAgentImpl.doStart(), the method createMBeanServer() is never get invoked if mbean server is not injected because > the getMBeanServer() always return non-null (the getMBeanServer() method always returns the platform mbean server) > if (getMBeanServer() == null) { > // The MBeanServer was not injected > createMBeanServer(); > } > A few side effects if not calling the createMBeanServer() method. > 1. users always get platform mbean server > 2. system properties processing in createMBeanServer() is bypassed > 3. jmx connector is not created as it is created indirectly by the createMBeanServer() metthod. > I propose to invoke createMBeanServer() inside getMBeanServer() and update createMBeanServer() to read a property to determine when platform mbean should be use. (see attached patch) -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.