ActiveMQ +休息+ Java环境创建
我对这个问题有几个疑问
1) ActiveMQ 在安装并启动后也会启动 Jetty? Jetty 运行在端口 80 上? (我的应用程序将要安装的环境已经运行 Apache,因此端口 80 上不能有另一个 Web 服务器...)
2)我已使用以下方法在我的计算机上使用 java 成功管理了从队列中发布和获取消息url: http://localhost:8161/demo/message/FOO/BAR。应用程序将在仅打开端口 80 的远程计算机上运行。是否可以使用 JAX-RS 创建静态 Web 服务,当我要访问时,它将在端口 80 上提供队列内容,例如以下网址:/demo/message/FOO/BAR?
3)是否需要在 ActiveMQ 的 web.xml 或其他文件上完成大量复杂的配置才能使其正常工作?
多谢!
I got several questions regarding this issue
1) ActiveMQ after installed and started also starts Jetty? Jetty is running on port 80?
(the environment where my application is going to be installed already running Apache, so there can't be another web server on port 80...)
2) I have managed successfully post and get messages from queue using java on my machine using following url: http://localhost:8161/demo/message/FOO/BAR. Application will be running on remote machine, where only port 80 is opened.. Is it possible with JAX-RS to create restful web service, which is going to serve queue content on port 80 when I'm just going to access for example the following url: /demo/message/FOO/BAR ?
3) Is there a lot of complex configuration needed to be done on web.xml of ActiveMQ or another files to make this working?
Thanks a lot!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
ActiveMQ 安装包括一个可用于监视队列的 Web 控制台。这可能是您在 Jetty 在端口 80 上启动时看到的内容。
有关参考,请参阅 监控ActiveMQ 和 Web 控制台。后一个链接显示了如何配置 Web 控制台以侦听不同的端口。
此外,如果您需要仅打开服务器的 80 端口,则可以随时重新配置 ActiveMQ,使队列侦听端口 80 而不是 8161。
The ActiveMQ installation includes a Web Console that can be used to monitor the queue. This is likely what you see when Jetty starts on port 80.
For reference, see Monitoring ActiveMQ and Web Console. The latter link shows how you can configure the Web Console to listen on different ports.
In addition, you could always re-configure ActiveMQ so that the queue listens on port 80 rather than 8161 if you have some requirement that only port 80 of the server can be open.