blob: 541cc19daa6147ce4be9d95716b875a8b30cc8bd [file] [log] [blame]
<div class="wiki-content maincontent"><p><structured-macro ac:macro-id="2affa320-6478-41f3-92c5-b82475c1c623" ac:name="redirect" ac:schema-version="1"><parameter ac:name="location"><link><page ri:content-title="How do I create new destinations"></page></link></parameter></structured-macro></p>
<p>With ActiveMQ there is no real resaon to explicitly setup/configure the queues you are gonna need. If you try to publish or subscribe from any queue or topic it will be silently created on the fly.</p>
<p>Sometimes people put destinations into JNDI so that they can be pulled out by their application without needing to know the real, physical queue/topic name. This is fine, you can just add the ActiveMQQueue and ActiveMQTopic objects into JNDI (or any configuration mechanism you wish).</p>
<p>Also if you use the ActiveMQInitialContextFactory, then you can explicitly configure which destinations appear in the context using the jndi.properties approach. For more information please refer to the <link><page ri:content-title="JNDI Support"></page></link></p></div>