Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ActiveMQ REST API URI?

I'm having trouble getting an example running using the REST API with ActiveMQ 5.4.0. I've seen several different GET URIs.

The documentation refers to this URI: http://localhost:8161/demo/message/<queue name>?type=queue

Other sources refer to these URIs:

  1. http://localhost:8161/queue/<queue name>
  2. http://localhost:8161/demo/message/<queue name>

Which URI is correct? Is there some configuration that I've missed?

Thank you!

like image 427
johnnieb Avatar asked Sep 07 '10 15:09

johnnieb


2 Answers

If you make use of the ActiveMQ MessageServlet, then the format for the REST URI is:

http://localhost:8080/message/test?readTimeout=1000&type=queue

There is a demo of this URI format shown in the RestTest.

Bruce

like image 103
bsnyder Avatar answered Sep 23 '22 19:09

bsnyder


If you are using ActiveMQ 5.8 or higher you should use this URL instead:

http://localhost:8080/api/message/test?readTimeout=1000&type=queue
like image 35
idiazt Avatar answered Sep 26 '22 19:09

idiazt