Configure startup destinations)
Although activemq can be used to automatically create a queue, it is necessary to configure it at startup in some cases. For example, if security settings are configured, the queue user does not have the permission to create a queue.
In this case, you only need to add the queue to be created at startup to the broker node in the configuration file:
<Beans xmlns = Http://www.springframework.org/schema/beans" Xmlns: xsi = Http://www.w3.org/2001/XMLSchema-instance" Xsi: schemalocation = "http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd http://activemq.apache.org/schema/core http://activemq.apache.org/schema/core/activemq-core.xsd http://camel.apache.org/schema/spring"> <Bean class ="Org. springframework. Beans. Factory. config. propertyplaceholderconfigurer"/> <Broker xmlns =Http://activemq.apache.org/schema/core"> <Destinations> <Queue physicalname ="Foo. Bar"/> <Topic physicalname ="Some. Topic"/> </Destinations> </Broker> </Beans>