4 Replies Latest reply on Jul 6, 2012 6:30 AM by suikast42

    JMS Topic Browser

    suikast42

      Hi guys,

       

      is it possible to list all messages in a topic or delete them programatically ??

       

      I see in the JMS API this mthod session.createBrowser(queue);. But that works only for queues. I need a solution for topics .

       

      Thanks in advance

        • 1. Re: JMS Topic Browser
          ataylor

          A topic is just an address, the messages themselves are only routed to any queues that are bound to an address where each queue represents a subscription. If you have no queues(subscriptions) then there will be no messages to delete, if there are then you would have to delete them from each queue individually.

          • 2. Re: JMS Topic Browser
            suikast42

            The problem is I have no queues only topics. How can I look inside the topics ??

            • 3. Re: JMS Topic Browser
              ataylor

              read my answer again, topics are just an address there are no messages kept in an address, they are just forwrded to queues which represent subscriptions, topic = address, queue = subscription

              • 4. Re: JMS Topic Browser
                suikast42

                Thanks Andy,

                I think I had a blackout