Tomcat 上的 HornetQ

发布于 2024-08-29 22:23:51 字数 284 浏览 3 评论 0原文

是否可以在 Tomcat 上运行 HornetQ(JBoss JMS 实现)?

HornetQ 文档都是关于 JBoss AS 或独立场景的...

更新:
这是来自 HornetQ 功能列表:“HornetQ 被构建为一组普通的旧 Java 对象,因此它可以在 JBoss Microcontainer、Spring、Google Guice 中运行或嵌入到任何第三方产品中并直接实例化”。

所以我很高兴知道在普通 Tomcat 上运行的 Web 应用程序 (WAR) 如何嵌入 HornetQ?

Is that possible to run HornetQ (JBoss JMS implementation) on Tomcat?

The HornetQ documentation is all about JBoss AS or standalone scenarios...

Update:
This is from HornetQ feature list: "HornetQ is architected as a set of Plain Old Java Objects, it can therefore be run in JBoss Microcontainer, Spring, Google Guice or embedded in any third party product and instantiated directly".

So I would be glad to to know how the Web Application (WAR) running on plain Tomcat can embed HornetQ?

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

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

发布评论

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

评论(2

眼眸 2024-09-05 22:23:51

Tomcat 与独立的相同,您只需让 Tomcat 在 JVM 中运行,您所需要做的就是将正确的类放入类路径中。

这里的所有内容都在手册中< /a>

1) 您需要运行一个 HornetMQ 服务器。
2)将jar文件放入Tomcat类路径中。
3) 将正确的队列连接工厂和队列连接放入 JNDI 提供程序中。

现在您已准备好运行...

1) 从 JNDI 获取 QCF 和 Q 属性。
2)在Servlet中访问。

Tomcat is the same as standalone, you just have Tomcat running in a JVM and all you need to do is put the proper classes in the classpath.

Everything here is in the manual

1) You need to have a HornetMQ server running.
2) Put the jar files in the Tomcat classpath.
3) Put the proper Queue Connection factories and Queue Connections into your JNDI provider.

You are now ready to run...

1) Get QCF and Q properties from JNDI.
2) Access in Servlet.

柠檬心 2024-09-05 22:23:51

致拉吉夫
HornetQ 可以与 Tomcat JNDI 集成,并且可以从 spring beans 中使用。此处描述 http://wash- inside-out.blogspot.com/2010/08/hornetq-jms-integration-with-tomcat.html

To Rajiv
HornetQ can be integrated with Tomcat JNDI and can be used from from spring beans. Description here http://wash-inside-out.blogspot.com/2010/08/hornetq-jms-integration-with-tomcat.html

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