Endre Stølsvik created AMQ-5680:
-----------------------------------

             Summary: MessageBrokerView.getTempQueues() have test for 
destination.isTopic() instead of destination.isQueue()
                 Key: AMQ-5680
                 URL: https://issues.apache.org/jira/browse/AMQ-5680
             Project: ActiveMQ
          Issue Type: Bug
            Reporter: Endre Stølsvik
            Priority: Minor


The following code is a near-copy of the .getTempTopics() right above - without 
the change of the "if (destination.isTopic()..." to "if 
(destination.isQueue()..."

{code}
    /**
     * Retrieve a set of all TemporaryQueues be used by the Broker
     * @return  all TemporaryQueues
     */
    public Set<ActiveMQTempQueue> getTempQueues(){
        Set<ActiveMQTempQueue> result = new HashSet<ActiveMQTempQueue>();
        for (ActiveMQDestination destination:getDestinations()){
            if (destination.isTopic() && destination.isTemporary()){
                result.add((ActiveMQTempQueue) destination);
            }
        }
        return result;
    }
{code}




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to