activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From JuliusR <juliusLra...@yahoo.com.ph>
Subject Re: AMQ 5.1 - How to get a list of Queues
Date Tue, 21 Oct 2008 09:08:13 GMT


Hi,
  How to convert these to C#.. thank you.


shaf wrote:
> 
> Hello,
> 
> I am trying to get a list of existing Queues with the following code:
> 
> 	ActiveMQConnectionFactory connectionFactory = new
> ActiveMQConnectionFactory( server );
> 	ActiveMQConnection amqcon = connectionFactory.createConnection();
> 	Set<ActiveMQQueue> amqs = amqcon.getDestinationSource().getQueues();
> 	Iterator<ActiveMQQueue> queues = amqs.iterator();
> 		
> 	while ( queues.hasNext() )
> 	{
> 		ActiveMQQueue queue = queues.next();
> 		System.out.println( "Queue: " + queue.getPhysicalName() );
> 	}
> 
> The code above does not work consistently. I have a sample queue as well
> as one that I created using the admin interface and none show up. Can
> someone provide some guidance here please.
> 
> Thanks,
> Shaf.
> 

-- 
View this message in context: http://www.nabble.com/AMQ-5.1---How-to-get-a-list-of-Queues-tp17117156p20086143.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Mime
View raw message