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

ActiveMQMessageProducer::send uses == instead of equals to compare destinations

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 5.5.1
    • Fix Version/s: 5.7.0
    • Component/s: JMS client
    • Labels:
      None

      Description

      In method
      send(Destination destination, Message message, int deliveryMode, int priority, long timeToLive)

      The comparison destination == info.getDestination() in line 205 seems wrong.
      I think that destination.equals(info.getDestination()).

      Otherwise you get an exception "This producer can only send messages to QUEUE", even when both destination and info.getDestination() point to the same queue.

        Attachments

          Activity

            People

            • Assignee:
              davsclaus Claus Ibsen
              Reporter:
              peshitz Lior Lipshitz
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: