HornetQ on Tomcat

前端 未结 2 1029
清酒与你
清酒与你 2021-02-15 12:22

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

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

Update:
Thi

2条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-02-15 13:11

    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.

提交回复
热议问题