Uploaded image for project: 'AMQ Broker'
  1. AMQ Broker
  2. ENTMQBR-3464

Second virtual topic subscriber does not get messages

    XMLWordPrintable

Details

    • Bug
    • Resolution: Not a Bug
    • Major
    • None
    • AMQ 7.6.0.GA
    • broker-core
    • None
    • Hide

      1) create a broker
      Create broker
      $AMQ_HOME/bin/artemis create amq76broker --allow-anonymous --silent --force --user guest --password guest --role guest

      2) Copy file from <virtual-topic-mapping-reproducer>/src/main/resources/activemq/server0/broker.xml to amq76broker/etc/broker.xml

      3) start 'amq76broker' instance
      ./amq76broker/bin/artemis run

      4) Build and run example
      Open 3 terminals
      In each go to directory ${AMQ_HOME}/examples/protocols/openwire/virtual-topic-mapping
      In terminal 1 Run:
      mvn clean install
      Then start 1st consumer:
      mvn verify -PnoServer -P consumer1
      In terminal 2 run:
      mvn verify -PnoServer -P consumer2
      In third terminal run
      mvn verify -PnoServer -P producer
      You will see consumer 1 get all the messages. Consumer2 gets no messages.

      5- If consumer2 is restarted, it will get all messages. Also if consumer2 is started after producer starts pushing messages, consumer 2 will get messages

      Show
      1) create a broker Create broker $AMQ_HOME/bin/artemis create amq76broker --allow-anonymous --silent --force --user guest --password guest --role guest 2) Copy file from <virtual-topic-mapping-reproducer>/src/main/resources/activemq/server0/broker.xml to amq76broker/etc/broker.xml 3) start 'amq76broker' instance ./amq76broker/bin/artemis run 4) Build and run example Open 3 terminals In each go to directory ${AMQ_HOME}/examples/protocols/openwire/virtual-topic-mapping In terminal 1 Run: mvn clean install Then start 1st consumer: mvn verify -PnoServer -P consumer1 In terminal 2 run: mvn verify -PnoServer -P consumer2 In third terminal run mvn verify -PnoServer -P producer You will see consumer 1 get all the messages. Consumer2 gets no messages. 5- If consumer2 is restarted, it will get all messages. Also if consumer2 is started after producer starts pushing messages, consumer 2 will get messages

    Description

      With two virtual topic subscribers using virtual topic mappings (as described in 1, second subscriber does not get messages unless restarted.

      Attachments

        Activity

          People

            gtully@redhat.com Gary Tully
            rhn-support-abelkour Mohamed Amine Belkoura
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: