2 Replies Latest reply: Jul 18, 2011 1:59 AM by Qing Gu RSS

    How to create topic with core API?

    Qing Gu Newbie

      Should I create multiple temporary queues to simulate a topic with core API or did I miss something in the doc?

        • 1. Re: How to create topic with core API?
          java into Newbie

          you can create multple consumers on the same address and this will create the topic kind of architecture you want to have.

          • 2. Re: How to create topic with core API?
            Qing Gu Newbie

            Session.createConsumer(String queueName)

            Session.createProducer(String address)

            Unlike procuder, We can only create consumers to queues but not addresses.

             

            From the manual

            "

            In core, there is no concept of a Topic, Topic is a JMS only term. Instead, in core,

            we just deal with addresses and queues.

            For example, a JMS  topic would be  implemented by a single address  to which

            many queues are bound. Each queue represents a subscription of the topic.

            "