camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Willem Jiang (JIRA)" <j...@apache.org>
Subject [jira] Closed: (CAMEL-508) Some issues with creating MBeanServer
Date Thu, 05 Jun 2008 09:29:00 GMT

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


Mime
View raw message