Uploaded image for project: 'ActiveMQ Classic'
  1. ActiveMQ Classic
  2. AMQ-1620

compositeTopic changing destination field of original message

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 5.1.0
    • 5.1.0
    • Broker
    • None
    • Patch Available

    Description

      When using compositeTopics to copy messages from one destination to multiple queues or topics, and setting forwardOnly="false", messages sent out on the original topic will have the destination field set to the last forwarded topic/queue name. For example, using this config:

      <compositeTopic name="original.topic" forwardOnly="false">
      <forwardTo>
      <queue physicalName="forwarded.queue" />
      <topic physicalName="forwarded.topic" />
      </forwardTo>
      </compositeTopic>

      Messages sent out on the original.topic topic will have "forwarded.topic" set as their destination.

      My stomp client (activemessaging) uses the destination field to route messages locally after they are received, so this causes big problems for me.

      I have attached a patch that fixes this behavior.

      Attachments

        Activity

          People

            rajdavies Robert Davies
            pschwamb Pete Schwamb
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: