Finally I did found a way how to consume JMX information through Jolokia. The
following URL for example

http://localhost:8181/jolokia/read/org.apache.activemq:type=Broker,brokerName=amq-broker/DurableTopicSubscribers

delivers the information about durable subscribers as following

{
        "timestamp": 1442825904,
        "status": 200,
        "request": {
                "mbean": 
"org.apache.activemq:brokerName=amq-broker,type=Broker",
                "attribute": "DurableTopicSubscribers",
                "type": "read"
        },
        "value": [{
                "objectName":
"org.apache.activemq:brokerName=amq-broker,clientId=SIB0001,consumerId=Durable(SIB0001_SIB0001.article),destinationName=article,destinationType=Topic,endpoint=Consumer,type=Broker"
        },
        {
                "objectName":
"org.apache.activemq:brokerName=amq-broker,clientId=SIB0001,consumerId=Durable(SIB0001_SIB0001.pdf),destinationName=pdf,destinationType=Topic,endpoint=Consumer,type=Broker"
        }]
}

With jconsole you may connect to JMX services within ServiceMix and discover
all the possible paths.

Best
- Gerald



--
View this message in context: 
http://servicemix.396122.n5.nabble.com/Activate-and-access-the-ActiveMQ-REST-API-within-ServiceMix-tp5722971p5722980.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to