Uploaded image for project: 'ActiveMQ C++ Client'
  1. ActiveMQ C++ Client
  2. AMQCPP-315

Advisory messages do not work with multiple listeners

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.2.2
    • 3.2.3, 3.3.0
    • None
    • None
    • Windows, ActiveMQ 5.3.1

    Description

      We found that the advisory messages do not work as expected when there are multiple consumers listening to the same advisory topics.

      We have three applications, AdvisoryMessageListener, MessageListener, and MessageSender.

      AdvisoryMessageListener listens to the following two topics:
      ActiveMQ.Advisory.Consumer.Topic.cpp.itemLookup
      ActiveMQ.Advisory.Producer.Topic.cpp.itemLookup

      MessageListener listens to topic: cpp.itemLookup

      MessageSender sends messages to topic: cpp.itemLookup

      If there is only one instance of AdvisoryMessageListener , then everything work fine. We can get the advisory messages when we start/shut down MessageListener or MessageSender . However, when we start a second instance of AdvisoryMessageListener , it seems to knock out the existing connection of the first AdvisoryMessageListener. The first instance can no longer receive any advisory messages after that.

      This problem could be related to the problem reported in jira item "AMQCPP-314 Starting app with Com using cms destroys connection of other app. New problem with recent lib version". However in our problem, we do not have any COM layers.

      Attachments

        1. vs2005-build.zip
          58 kB
          Huang Hua
        2. IdGenerator.h
          3 kB
          Huang Hua
        3. IdGenerator.cpp
          5 kB
          Huang Hua
        4. AdvisoryMessageListener2.zip
          12 kB
          Huang Hua
        5. activemq.log
          847 kB
          Huang Hua

        Activity

          People

            tabish Timothy A. Bish
            hhuang Huang Hua
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: