开发者

ActiveMQ REST API URI?

开发者 https://www.devze.com 2023-01-14 23:13 出处:网络
I\'m having trouble getting an example running using the REST API with ActiveMQ 5.4.0. I\'ve seen several different GET URIs.

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 na开发者_运维知识库me>
  2. 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
0

精彩评论

暂无评论...
验证码 换一张
取 消