2 Replies Latest reply on Jun 26, 2012 5:51 PM by Gregory Khrapunovich

    How to configure HornetQ for REST

    Gregory Khrapunovich Newbie

      I have installed HornetQ (2.2.14) standalone on Windows 2008 Server. Now I would like to talk to it from C# using REST.  The manual (http://docs.jboss.org/hornetq/2.2.2.Final/rest-interface-manual/html/ch02.html#d0e69) describes what I need to change in configuration xml files, but it doesn't explain where those files are. It refers to REST example but there is no such example in 2.2.14 distribution. I made the search for <web-app> tag and could not find anything that looks appropriate.

       

      Can you please help. Which xml file do I need to change to enable REST? Or is it already enabled in 2.2.14?

      Is there an example for REST interface?

       

      Thank you.

      Gregory

        • 1. Re: How to configure HornetQ for REST
          Robin Huiser Newbie


          Hi,

           

          The rest examples itself are part of the 2.2.2 release only.

          I am also using 2.2.14 (deployed within JBoss EAP 5.1.2); if you are interested I could send you my HornetQRestBridge.war file containing:

           

          WEB-INF/

          ├── classes

          │   └── config.xml

          ├── lib

          │   ├── hornetq-rest-2.2.14.Final.jar

          │   ├── jaxb-impl.jar

          │   ├── jaxrs-api.jar

          │   ├── jsr250-api.jar

          │   ├── resteasy-jaxb-provider.jar

          │   ├── resteasy-jaxrs.jar

          │   ├── scannotation.jar

          │   └── sjsxp.jar

          └── web.xml


           

          Robin

          1 of 1 people found this helpful
          • 2. Re: How to configure HornetQ for REST
            Gregory Khrapunovich Newbie

            Robin, thank you. I am approaching HornetQ from .Net/C# side which is completely different environment. With time I realized that in order to use REST I need to install an Apache Tomcat in addition to IIS that I am presently using. Altogether it looks like too much trouble. I am presently planning to use STOMP instead. It appears to do all the same things, but does not require http server.

            Unfortunately the whole project was pushed back, I just created a simple prototype using STOMP.

            Gregory