如何启用或验证ActiveMQ的REST接口? [英] How does one enable or verify the REST interface of ActiveMQ?
问题描述
出于开发目的,我在Windows 2003虚拟服务器上设置了ActiveMQ 5.8.0。我知道应该有一个REST接口,用于读取和写入队列等。但是,我似乎无法确切地找到执行方法。端口8161可用于访问管理控制台,但是我从Firefox Poster尝试的每个URL都返回404。我尝试了以下URL:
I setup ActiveMQ 5.8.0 on a Windows 2003 virtual server for development purposes. I understand that there is suppose to be a REST interface for reading from and writing to queues and such. But, I can't seem to track down how to do it exactly. Port 8161 can be used to access the admin console, but every URL I try from Firefox Poster returns a 404. I tried URLs like these:
http://localhost:8161/queues <-- 404
http://localhost:61616/queues <-- some default message
http://localhost:61616/queue/inbox <-- same default message
http://localhost:8161/queue/inbox <-- 404
文档中提到将URI映射到servlet,但是我不确定如何或是否需要这样做。默认情况下,/ demo功能是禁用的,这对我来说很好。如何为队列启用REST?谢谢!
The documentation mentions mapping a URI to the servlet, but I'm not sure how or if I need to do this. The /demo feature is disabled by default, which is fine by me. How do I enable REST for my queues? Thanks!
推荐答案
由于/ demo被禁用,它已移至/ api
http :// localhost:8161 / api / message /
As /demo is disabled, it been moved to /api
http://localhost:8161/api/message/
这是所有REST操作的路径
this is the path for all REST operations
这篇关于如何启用或验证ActiveMQ的REST接口?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!