You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@activemq.apache.org by "Gary Tully (JIRA)" <ji...@apache.org> on 2015/06/04 16:53:38 UTC

[jira] [Resolved] (AMQ-5656) Support selective MBean creation

     [ https://issues.apache.org/jira/browse/AMQ-5656?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gary Tully resolved AMQ-5656.
-----------------------------
       Resolution: Fixed
    Fix Version/s: 5.12.0

http://git-wip-us.apache.org/repos/asf/activemq/commit/928e815a

new attribute on the managementContext, a comma separated list of attribute key=value pairs. Any mbean objectName that matches any pair will be not be registered in the mbean server.

For example, to disable mbean registration for all consumer and dynanamicPropducer view mbeans, use the following:
{code}
<managementContext>
            <managementContext suppressMBean="endpoint=dynamicProducer,endpoint=Consumer"/>
        </managementContext>{code}


To peek at the general naming scheme see: BrokerMBeanSupport
https://github.com/apache/activemq/blob/61da1faa4c4e49191b373049ee36434aaad58897/activemq-broker/src/main/java/org/apache/activemq/broker/jmx/BrokerMBeanSupport.java

> Support selective MBean creation
> --------------------------------
>
>                 Key: AMQ-5656
>                 URL: https://issues.apache.org/jira/browse/AMQ-5656
>             Project: ActiveMQ
>          Issue Type: Improvement
>            Reporter: Martin Lichtin
>            Assignee: Gary Tully
>             Fix For: 5.12.0
>
>
> A continuation of http://activemq.2283324.n4.nabble.com/How-to-disable-MBeans-creation-tp4692863p4692904.html where I asked about a feature to suppress MBean creation for certain objects, such as sessions, producers, consumers.
> Quoting Gary:
> {quote}
> There is a single code entry point ([ManagementContext.registerMBean|https://github.com/apache/activemq/blob/master/activemq-broker/src/main/java/org/apache/activemq/broker/jmx/ManagementContext.java#L391]) for all MBean registration in the broker so gating that on a filter or regexp match may be all that we need.
> {quote}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)