Currently I'm working on an interface to send and receive messages from an ActiveMQ instance on the network using the built-in REST interface (jolokia). Using the sparse documentation at hand I found out that we have one url named http://(server-ip):8161/api/message
to both GET and POST messages on a predefined queue.
Sending works like a charm thus far, but receiving seems a bit more problematic. It creates a consumer per request which is not what I would like to have.
The documentation (http://activemq.apache.org/rest.html) tells me to keep the session alive and such, but I have no clue on how to do this. Furthermore, I cannot seem to find which parameters I can use to optimize these calls, nor what interfaces are available to connect to at all (apart of course from the api/message).
Is there any form of documentation or swagger-alike interface available at all for this? Any pointer in the right direction is appreciated.
[edit] I know of this answer: How does one enable or verify the REST interface of ActiveMQ?
Doug Dawson's question on the only answer is exactly what I was wondering as well.