将activemq嵌入jboss应用服务器的问题

发布于 2024-09-10 08:46:41 字数 694 浏览 3 评论 0原文

我完全是 Java Enterprise 的新手,还有很多东西需要学习。现在我正在工作,涉及使用 JBoss 和 ActiveMQ 的 JMS。应用程序将消息发送到 JBoss 中的队列,我的目标是使用任何消息代理访问这些消息(在本例中我尝试使用 ActiveMQ)。所以我认为将ActiveMQ嵌入到JBoss中对我来说更好。我使用下面的链接作为指导:

http://activemq.apache .org/integrating-apache-activemq-with-jboss.html

我遵循了指南中的每一个步骤,除了我使用的是 JBoss 4.2.3 和 ActiveMQ 5.1.1。如果这个问题是由工具版本不同造成的,我想我无能为力,因为其他版本似乎无法在我的机器上运行。当我运行 JBoss 来测试嵌入是否正常工作时,我看不到端口 localhost:61616(ActiveMQ 的默认端口)上运行的任何内容,尽管 JBoss 似乎运行良好。我的问题是:

  1. 有人知道如何解决这个问题吗?或者有人遇到过这样的问题吗?
  2. 有没有办法访问Jboss中的队列?

如果这个问题相当模糊或需要更多细节,请告诉我。预先感谢您的任何帮助。

I'm totally a newbie in Java Enterprise and I have a lot stuff yet to learn. Right now I'm working which involves JMS using JBoss and ActiveMQ. An application sends messages to queues in JBoss and my goal is to access those messages using any message broker (in this case I tried to use ActiveMQ). So I think it's better for me to embed ActiveMQ to JBoss. I used the link below as the guidance :

http://activemq.apache.org/integrating-apache-activemq-with-jboss.html

I followed every single steps in the guide except that I used JBoss 4.2.3 and ActiveMQ 5.1.1. If this problem results from the different version of the tools, I think I can't help it out because other versions seem does not work on my machine. When I run JBoss to test whether the embedding is working or not, I can't see anything running on port localhost:61616 which is the default port for ActiveMQ, although JBoss seems run well. My question is :

  1. Is any one know how to fix this? Or has anyone ever experienced such problem?
  2. Is there any way to access queue in Jboss?

If this question is pretty ambiguous or need more details, let me know. Thanks in advance for any help.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(2

青衫儰鉨ミ守葔 2024-09-17 08:46:41

我非常确定嵌入式代理已启动(传输 vm://localhost),这会导致该 VM 的 JMS 代理正常工作。但无法从外部访问该代理(通过 tcp 或其他任何方式)

I'm quite sure the embedded broker is started (transport vm://localhost) which results in a working JMS broker for that VM. But this broker isn't reachable from outside (via tcp or anything else)

萌能量女王 2024-09-17 08:46:41

启动jboss时,您在日志中看到任何错误吗?我设法让它与 Jboss 4.2 和 ActiveMQ 5.4 一起工作,一旦集成,它只会给你一个小提示,该提示可以正常工作,并显示一些信息消息“代理在端口启动...”。

您还可以尝试使用 ActiveMQ 中的示例生产者和接收者来测试队列是否正常工作。

如果您仍有问题,我可以尽力提供帮助

Do you see any error in the log when launching jboss? I managed to make it work with Jboss 4.2 and ActiveMQ 5.4, and once integrated it only gives you a small hint that is working correctly with some info message saying "broker started in port ..." .

Also you can try to use the sample producers and receivers in ActiveMQ to test if the queue is working correctly.

If you still have problems I can try to help

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