activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Timothy Bish <>
Subject Re: How to view the list of 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 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)
> 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:
> Sent from the ActiveMQ - User mailing list archive at

Tim Bish
Sr Software Engineer | FuseSource Corp |
skype: tabish121 | twitter: @tabish121

View raw message