1 Reply Latest reply on Nov 7, 2013 4:07 AM by ataylor

    Run the HornetQServer as a webapp in Tomcat

    jasbro

      My shop runs a huge number of Tomcat servers for various purposes, and we have well established process for creating/deploying/monitoring/maintaining theses tomcat servers, and the webapps running on them.  I have a need for a JMS queue, but there is pushback to using a standalone queue server, and it could take months (or longer) to get approval to use JBoss.  I have read that I can embed a HornetQ server into any Java app/webapp, but the only documentation I find is the EmbeddedExample from the download.  This example uses several classes that cannot be found inside the javadoc.  I found a question in this forum from two years ago where someone else was looking for the javadoc and he/she was told those classes aren't part of the API and aren't intended to be used by us.  So I guess I have two questions:

       

      1.  How would you get a JMS queue running in a shop that requires everything to run as a webapp in a Tomcat container?

      2.  If the answer to #1 is to do something like EmbeddedExample, where would you look for details on configuration options?

        • 1. Re: Run the HornetQServer as a webapp in Tomcat
          ataylor

          1.  How would you get a JMS queue running in a shop that requires everything to run as a webapp in a Tomcat container?

          The HornetQServer can be bootstrapped any way you want, I dont know much about Tomcat but you just need a hook to create the HornetQServer and JMSServer as in the example.

          2.  If the answer to #1 is to do something like EmbeddedExample, where would you look for details on configuration options?

          The configuration.java object bsically maps onto the configuration schema so you can just use the normal usr manual