activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tim Bain <tb...@alumni.duke.edu>
Subject Re: JAVA ActiveMQ JMX browse messages on Topic
Date Tue, 22 Aug 2017 06:09:40 GMT
You're right and I was wrong: it is indeed possible to browse a topic. I
learned something new today; thanks.

It looks to me like your problem may be that you don't have the right
ObjectName. What you wrote appears to be for the broker, not for the topic.
I'd expect something more like this:

ObjectName topicViewMBeanName = new
ObjectName("org.apache.activemq:type=Broker,brokerName=localhost,destinationType=Topic,destinationName="
+ name);


On Aug 21, 2017 4:01 AM, "Hitesh" <hitesh.hotchandani@contentsphere.com>
wrote:

> Hey Tim,
>
> Thanks for the reply.
>
> I connected the MBeans using jconsole and found that it is possible to
> browseMessages().
> All the data that I've sent to that topic is accessible on JMX UI.
> Following is the screenshot to verify the same.
>
> <http://activemq.2283324.n4.nabble.com/file/n4729857/Browse_Messages.png>
>
>
> If this is possible to do via Jconsole UI, I believe it is also possible to
> do it via JMXServices java APIs.
> Can you quickly try the example I've posted and help me out if its not much
> of a trouble?
> Also a small modifications in the sample code which i provided,
>
> List list = bean.browseMessages();
> changes to
> CompositeData[] list = bean.browse();
>
> Thanks in advance
>
>
>
> --
> View this message in context: http://activemq.2283324.n4.
> nabble.com/JAVA-ActiveMQ-JMX-browse-messages-on-Topic-
> tp4729813p4729857.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message