2 Replies Latest reply on Nov 16, 2009 2:40 PM by rabrego

    Browse Queues using Core API

      Hi.

      I am (relatively) new to messaging and am highly interested in HornetQ. I've looked through all of the examples provided and one in particular stands out. The ability to browse queues in JMS is something I would like to do, but with the core API instead of the JMS interface.

      In fact, most of the examples are JMS examples and very little examples of the core API. How could the browse queue example be implemented with the core api ?

        • 1. Re: Browse Queues using Core API
          jmesnil

          You can create a Core ClientConsumer to browse the queueu using ClientSession API

           ClientConsumer createConsumer(SimpleString queueName, boolean browseOnly) throws HornetQException;
          


          • 2. Re: Browse Queues using Core API

            Thanks for the tip.

            I should have studied the ClientSession methods more carefully. I was going more off of the examples and trying to reverse engineer something that I didn't need to.

            I tried it and it works as advertised.

            Thanks!