You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@activemq.apache.org by "Diptesh Chakraborty (Jira)" <ji...@apache.org> on 2025/05/08 08:52:00 UTC

[jira] [Created] (AMQ-9711) Cannot create MBean on ActiveMQ slave broker

Diptesh Chakraborty created AMQ-9711:
----------------------------------------

             Summary: Cannot create MBean on ActiveMQ slave broker
                 Key: AMQ-9711
                 URL: https://issues.apache.org/jira/browse/AMQ-9711
             Project: ActiveMQ Classic
          Issue Type: Bug
    Affects Versions: 5.16.2
            Reporter: Diptesh Chakraborty


I have ActiveMQ in master slave mode with KahaDB shared across common file system.

I am encountering {color:#FF0000}*javax.management.InstanceNotFoundException*{color}
{code:java}
String jmxUrl1 = "service:jmx:rmi:///jndi/rmi://" + remoteIp1 + ":15090/jmxrmi"; 
String brokerName1 = "slave";
JMXServiceURL url1 = new JMXServiceURL(jmxUrl1);
JMXConnector jmxConnector = JMXConnectorFactory.connect(url1, null);
MBeanServerConnection connection = jmxConnector.getMBeanServerConnection();
ObjectName queueObjectName1 = new ObjectName(
                "org.apache.activemq:type=Broker,brokerName=" + brokerName1 + ",destinationType=Queue,destinationName=TestIn"
        );{code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@activemq.apache.org
For additional commands, e-mail: issues-help@activemq.apache.org
For further information, visit: https://activemq.apache.org/contact