You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by "Timothy Bish (JIRA)" <ji...@apache.org> on 2013/04/25 16:06:15 UTC

[jira] [Closed] (AMQ-4479) BrokerService attempts to connect to JMX even though the broker url includes useJmx=false. Same behaviour when BrokerService#setUseJmx is being used.

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

Timothy Bish closed AMQ-4479.
-----------------------------

    Resolution: Incomplete

No test case or other supporting data to investigate.
                
> BrokerService attempts to connect to JMX even though the broker url includes useJmx=false. Same behaviour when BrokerService#setUseJmx is being used.
> -----------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: AMQ-4479
>                 URL: https://issues.apache.org/jira/browse/AMQ-4479
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: Broker
>    Affects Versions: 5.6.0, 5.7.0, 5.8.0
>         Environment: all environments.
>            Reporter: instilled
>            Priority: Minor
>              Labels: patch
>         Attachments: BrokerService.java.patch
>
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> Configuring the BrokerService to not connect to JMX has no effect, no matter if configured by broker uri, e.g. 'broker:(tcp://localhost:61616)?useJmx=false' or setter, ie. BrokerService#setUseJmx(false). This is due to the BrokerService#registerConnectorMBean not checking the value of BrokerService#isUseJmx before attempting to create/retrieve the JMX beans. Possible workaround:
> {quote}
> {{BrokerService broker = BrokerFactory.createBroker("broker:(tcp://localhost:61616)?useJmx=false");}}
> {{broker.getManagementContext().setCreateMBeanServer(false);}}
> {{broker.getManagementContext().setCreateConnector(false);}}
> {quote}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira