How do I get list of queues and topics using ActiveMQ NMS ( .NET ). Getting the list in JAVA is simple. But what about .NET.
In java I used this:
String messageBrokerUrl = "tcp://localhost:61616";
ActiveMQConnectionFactory connectionFactory = new ActiveMQConnectionFactory(
"admin", "admin", messageBrokerUrl);
ActiveMQConnection connection;
connection = (ActiveMQConnection) connectionFactory
.createConnection();
connection.start();
this.session = connection.createSession(this.transacted, ackMode);
DestinationSource ds = connection.getDestinationSource();
Set<ActiveMQQueue> queues = ds.getQueues();
for (ActiveMQQueue activeMQQueue : queues) {
System.out.println(activeMQQueue.getQueueName());
}
Is there a similar way for .NET?
Thanks.