| <div class="wiki-content maincontent"><p>Typically in Apache ActiveMQ we <link><page ri:content-title="How do I create new destinations"></page><plain-text-link-body>create destinations on demand</plain-text-link-body></link> as clients start to use them. However sometimes users want to be able to configure which destinations are available on startup explicitly in the <link><page ri:content-title="Xml Configuration"></page></link>.</p><parameter ac:name="title">4.1 Feature</parameter><rich-text-body><p>Note this feature is available from 4.1 onwards. If you try this XML on older versions of ActiveMQ you will get an exception about the 'destinations' property not being writable.</p></rich-text-body><h3>Example</h3><p>The following <a shape="rect" href="http://svn.apache.org/repos/asf/incubator/activemq/trunk/activemq-core/src/test/resources/org/apache/activemq/broker/destinations-on-start.xml">example</a> shows how you can configure a number of destinations to be available at startup.<plain-text-body> |
| <broker xmlns="http://activemq.apache.org/schema/core"> |
| |
| <destinations> |
| |
| <queue physicalName="FOO.BAR" /> |
| |
| <topic physicalName="SOME.TOPIC" /> |
| |
| </destinations> |
| |
| </broker> |
| |
| |
| </plain-text-body></p></div> |
| |