activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Timothy Bish <tab...@fusesource.com>
Subject Re: How to view the list of Queues.....with...no Producers and Consumers.
Date Mon, 23 Jan 2012 19:37:17 GMT
On Mon, 2012-01-23 at 11:30 -0800, sreekar wrote:
> Hi Tim,
> 
> Thanks for pinpointing the reason.
> 
> One more doubt....is there any API ( i chked in source code of destination,
> session, Queue, Topic source code, but could not find any) to get the list
> of all created (including the unused ones with no clients) Queues.....to
> just check as a precautionary measure whether the required queues are
> created (or) not?

You can listen on Advisory Topics in order to learn which Destinations
already exist on the broker.

> ...............(or)..............
> Will there be any problem if i try to create the existing queue?
> # Will it throw any exception?
> # Will it return the instance of the already existing Queue ?
> 

When you create a destination on the client you are really just creating
an object that acts as a key to reference the Destination using the name
you have specified.  If the Destination exists then nothing needs to be
done when you subscribe to it or produce to it, if it doesn't then the
broker will create a new Destination with the name you gave.  

> 
> Please help me out.
> 
> 
> Thanks,
> Sreekar
> 
> --
> View this message in context: http://activemq.2283324.n4.nabble.com/How-to-view-the-list-of-Queues-with-no-Producers-and-Consumers-tp4320618p4321728.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.

-- 
Tim Bish
Sr Software Engineer | FuseSource Corp
tim.bish@fusesource.com | www.fusesource.com
skype: tabish121 | twitter: @tabish121
blog: http://timbish.blogspot.com/


Mime
View raw message