我在使用 REST API 和 ActiveMQ 5.4.0 运行示例时遇到问题。我见过几个不同的 GET URI。
documentation引用此 URI:http://localhost:8161/demo/message/<队列名称>?type=queue
其他来源引用这些 URI:
- http://localhost:8161/queue/<队列名称>
- http://localhost:8161/demo/message/<队列名称>
哪个 URI 是正确的?我是否遗漏了一些配置?
谢谢!
最佳答案
如果您使用 ActiveMQ MessageServlet ,那么 REST URI 的格式为:
http://localhost:8080/message/test?readTimeout=1000&type=queue
RestTest 中显示了此 URI 格式的演示。 。
布鲁斯
关于rest - ActiveMQ REST API URI?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3660185/