1 Reply Latest reply on Jan 4, 2010 9:14 AM by timfox

    HornetQ in Tomcat Servlet (newbie)

    schwanitzb

      I am new to HornetQ so hopefully this is an easy question. I have a topic producer running in JBoss - that was easy. I need the topic consumer to run in a Tomcat servlet - this is not so easy. Are there any examples to point me in the right direction?

      Thanks,
      Bill

        • 1. Re: HornetQ in Tomcat Servlet (newbie)
          timfox

          I'm not sure about tomcat specifics but be very careful you don't end up creating a new consumer each time the servlet is invoked - this would be a serious anti-pattern and very slow.

           

          There's a wiki page about caching connections/sessions, if that's any help.