activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tim Bain <tb...@alumni.duke.edu>
Subject Re: Error getting Queue size
Date Tue, 22 Mar 2016 00:50:07 GMT
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_19842000@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.
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message