Typically in Apache ActiveMQ we create destinations on demand as clients start to use them. However sometimes users want to be able to configure which destinations are available on startup explicitly in the Xml Configuration.
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.
The following example shows how you can configure a number of destinations to be available at startup.
<bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer" />
<queue physicalName="FOO.BAR" />
<topic physicalName="SOME.TOPIC" />