activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lior Lipshitz (JIRA)" <j...@apache.org>
Subject [jira] [Created] (AMQ-3976) ActiveMQMessageProducer::send uses == instead of equals to compare destinations
Date Wed, 15 Aug 2012 09:58:38 GMT
Lior Lipshitz created AMQ-3976:
----------------------------------

             Summary: ActiveMQMessageProducer::send uses == instead of equals to compare destinations
                 Key: AMQ-3976
                 URL: https://issues.apache.org/jira/browse/AMQ-3976
             Project: ActiveMQ
          Issue Type: Bug
          Components: JMS client
    Affects Versions: 5.5.1
            Reporter: Lior Lipshitz
            Priority: Minor


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.



--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message