Hi Sreeker-

By default, ActiveMQ dynamically creates destinations as soon as a message is produced to the broker, or a consumer is attached to the destination. You may not need to do anything for your application, other than start-up ActiveMQ.

The JMS API doesn't have full administration functionality built into it. If you need to statically define destinations, you can do it in the activemq.xml configuration file using the <destinations/> tag. I don't recommend this approach, unless you *really* need complete lock-down security. Any change to the activemq.xml file requires a broker restart to go into effect.

ie..
<broker .... >
    ...
<destinations>
<queue physicalName="BobsTire.Billing.Q" />
<topic physicalName="BobsTire.Notify.T" />
</destinations>
     ...
</broker>

Another option, is to use the JMX interface to create, purge and delete destinations. There is not a C++ API in the ActiveMQ libs for this, and I'm not sure that there is a free C++ JMX API anywhere. You could write a quick Java program that makes the JMX calls, and then have your C++ program call that directly.

Hope this helps!
Matt Pavlovich


On 1/23/12 7:06 AM, sreekar wrote:
Hi All,

I am a new bie and am trying to use Active MQ - CPP in my current project.

I would like to have a separate binary to create the Queues/Topics, which
will be called initially, while setting up the configuration-parameters.

In the run-time the Queues (created) will be used by the Various clients
(Producers/Consumers) whose names will be decided depending upon other
configuration parameters.

The problem is:

I have create one small utility to create queues.
After creating a session,
[code]
session->createQueue(destURI)
// If i stop at this point, i am unable to see the queues in web-console
[/code]

[code]
destination = session->createQueue(destURI)
consumer = session->createConsumer(destination); // consumer..(or)..producer
// Now i am able to see the Queues (created) in web-console
[/code]

Do i need to necessarily link the newly-created queues with the clients for
them to reflect in Wen-Console.

Appreciate your help.

Thanks in Advance,
Sreekar

--
View this message in context: 
http://activemq.2283324.n4.nabble.com/How-to-view-the-list-of-Queues-with-no-Producers-and-Consumers-tp4320618p4320618.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Reply via email to