Activate and access the ActiveMQ REST API within ServiceMix

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Activate and access the ActiveMQ REST API within ServiceMix

catshout
Dear all,

I've read something about the ActiveMQ REST API. How can I activate, configure and access this API? I've done some research but didn't find something in relation to ActiveMQ within ServiceMix.

Furthermore, where can I find a complete documentation of the ActiveMQ REST API?

Many thanks in advance for any support.

Best
- Gerald
Reply | Threaded
Open this post in threaded view
|

Re: Activate and access the ActiveMQ REST API within ServiceMix

ksobkowiak
Hi Gerald

I think, the ActiveMQ Rest API is very interesting and ServiceMix should allow to enable this (or should have it enabled per default). I think we should research (or find a documentation) how to enable theRest API. The vanilla ActiveMQ enables this per default (or have at least prepared configuration which allows to
start it with the rest API enabled). I've opened an issue for this - https://issues.apache.org/jira/browse/SM-2670

Kindly regards
Krzysztof

On 17.09.2015 17:38, catshout wrote:

> Dear all,
>
> I've read something about the ActiveMQ REST API. How can I activate,
> configure and access this API? I've done some research but didn't find
> something in relation to ActiveMQ within ServiceMix.
>
> Furthermore, where can I find a complete documentation of the ActiveMQ REST
> API?
>
> Many thanks in advance for any support.
>
> Best
> - Gerald
>
>
>
> --
> View this message in context: http://servicemix.396122.n5.nabble.com/Activate-and-access-the-ActiveMQ-REST-API-within-ServiceMix-tp5722971.html
> Sent from the ServiceMix - User mailing list archive at Nabble.com.

--
Krzysztof Sobkowiak (@ksobkowiak)

JEE & OSS Architect, Integration Architect
Apache Software Foundation <http://apache.org/> Member
Apache ServiceMix <http://servicemix.apache.org/> Committer & PMC Member
Senior Solution Architect @ Capgemini SSC <http://www.capgeminisoftware.pl/>
Reply | Threaded
Open this post in threaded view
|

Re: Activate and access the ActiveMQ REST API within ServiceMix

catshout
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