You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "Willem Jiang (JIRA)" <ji...@apache.org> on 2008/06/05 11:29:00 UTC

[jira] Closed: (CAMEL-508) Some issues with creating MBeanServer

     [ 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.