Topics aren't queues, they're topics.  Try casting to Topic instead (though
you won't be able to browse it, because you can only browse queues).
On Mar 21, 2016 10:01 AM, "Ravi1978" <uma_19842...@yahoo.co.in> wrote:

> Hi
>
> We are upgraded ActiveMQ 5.6 to 5.12.2. We are defining a queue
> (destination
> type as "Topic") and messages are stored and consumed properly. When we try
> to browse the queue or try to get the count of messages in the queue
> getting
> error "org.apache.activemq.broker.region.virtual.MappedQueueFilter cannot
> be
> cast to org.apache.activemq.broker.region.Queue".
>
> The same is working fine when we define the destination type as "queue"
>
> Code :  return (Queue) getDestination(name,
> ActiveMQDestination.QUEUE_TYPE);
>         where  getDestination() returns "Destination" obj
>
>
> Same code works fine in ActiveMQ version  5.6.
>
> Kindly suggest
>
>
>
> --
> View this message in context:
> http://activemq.2283324.n4.nabble.com/Error-getting-Queue-size-tp4709767.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>

Reply via email to