ActiveMQ +休息+ Java环境创建

发布于 2024-09-19 22:31:28 字数 488 浏览 3 评论 0原文

我对这个问题有几个疑问

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

无尽的现实 2024-09-26 22:31:28

ActiveMQ 安装包括一个可用于监视队列的 Web 控制台。这可能是您在 Jetty 在端口 80 上启动时看到的内容。

有关参考,请参阅 监控ActiveMQWeb 控制台。后一个链接显示了如何配置 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文