tag:blogger.com,1999:blog-284240372678709986.post3138726806760185834..comments2022-12-01T19:39:24.803-08:00Comments on Initek Consulting - San Diego, CA: managing ActiveMQ with JMX APIsBen ODayhttp://www.blogger.com/profile/02462610652603338525noreply@blogger.comBlogger9125tag:blogger.com,1999:blog-284240372678709986.post-85729317389091652862014-02-20T06:52:15.277-08:002014-02-20T06:52:15.277-08:00Thanks for the update on this. I was running into ...Thanks for the update on this. I was running into the same issue and that fixed it. Much appreciated.Anonymoushttps://www.blogger.com/profile/11853073791738023486noreply@blogger.comtag:blogger.com,1999:blog-284240372678709986.post-17598640267500412342013-11-11T01:55:42.069-08:002013-11-11T01:55:42.069-08:00hi ben
i got the answer.ObjectName activeMQ = new...hi ben <br />i got the answer.ObjectName activeMQ = new ObjectName("org.apache.activemq:BrokerName=localhost,Type=Broker"); in this BrokerName 'B' sould be small 'b' i.e brokerName same for "Type" will be "type". otherwise it will give "instancenotfoundexception".Anonymoushttps://www.blogger.com/profile/16475667763530409101noreply@blogger.comtag:blogger.com,1999:blog-284240372678709986.post-76031152848112152092013-11-11T00:18:14.402-08:002013-11-11T00:18:14.402-08:00Hii Ben,Lwin
i am trying this example, i got one e...Hii Ben,Lwin<br />i am trying this example, i got one exception like lwin got before but i resolve by change the config file createConnector="true". then i got one exception like "InstanceNotFoundException" : org.apache.activemq:Type=Broker,BrokerName=localhost.i changed in config file useJmx="true".but still i'm not able to resolve it. version-activemq 5.8.0Anonymoushttps://www.blogger.com/profile/16475667763530409101noreply@blogger.comtag:blogger.com,1999:blog-284240372678709986.post-75585752608773045252012-11-20T00:11:36.666-08:002012-11-20T00:11:36.666-08:00Hi Ben,
I have successfully made the program run....Hi Ben,<br /><br />I have successfully made the program run. I did not know that activemq is hosting jmx server itself. Thanks for sharing knowledge. <br /><br />LwinLwin Htoo Kohttps://www.blogger.com/profile/06155685903948662819noreply@blogger.comtag:blogger.com,1999:blog-284240372678709986.post-6459165472413596592012-11-19T23:31:45.911-08:002012-11-19T23:31:45.911-08:00Hi Ben,
I am trying your example, and always ends ...Hi Ben,<br />I am trying your example, and always ends up with "java.io.IOException: Failed to retrieve RMIServer stub: javax.naming.NameNotFoundException: jmxrmi" . I think I don't have JMX server running. How/where to run JMX server? Do I need to create JMX server?Lwin Htoo Kohttps://www.blogger.com/profile/06155685903948662819noreply@blogger.comtag:blogger.com,1999:blog-284240372678709986.post-64472533698558994712011-11-08T13:15:49.503-08:002011-11-08T13:15:49.503-08:00if you are using ActiveMQ 4+, then you don't n...if you are using ActiveMQ 4+, then you don't need to change the config file at all (JMX is enabled by default). see http://activemq.apache.org/jmx.html for more information...Ben ODayhttps://www.blogger.com/profile/02462610652603338525noreply@blogger.comtag:blogger.com,1999:blog-284240372678709986.post-57154358801683920972011-11-08T12:47:02.201-08:002011-11-08T12:47:02.201-08:00What do I need to change the config file to ?
Jes...What do I need to change the config file to ?<br /><br />JessicaAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-284240372678709986.post-49817968121208899462011-06-06T11:33:43.972-07:002011-06-06T11:33:43.972-07:00If you are running the activeMQ example code, you ...If you are running the activeMQ example code, you have to make a change to the config file:<br /><br /><br /><br /><br /><br />by default, createConnector="false", which will lead you to getting an exception:<br /><br />java.io.IOException: Failed to retrieve RMIServer stub: javax.naming.ServiceUnavailableException [Root exception is java.rmi.ConnectException: Connection refused to host: localhost; nested exception is: <br /> java.net.ConnectException: Connection refused]<br /> at javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:342)<br /> at javax.management.remote.JMXConnectorFactory.connect(JMXConnectorFactory.java:267)<br /> at javax.management.remote.JMXConnectorFactory.connect(JMXConnectorFactory.java:226)Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-284240372678709986.post-25651908150929826722011-01-07T16:45:53.771-08:002011-01-07T16:45:53.771-08:00thanks for posting this info..this is super helpfu...thanks for posting this info..this is super helpfulAarthinoreply@blogger.com