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:
- http://localhost:8161/queue/<queue na开发者_运维知识库me>
- http://localhost:8161/demo/message/<queue name>
Which URI is correct? Is there some configuration that I've missed?
Thank you!
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
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
精彩评论