Activemq queue feature: Configure startup destinations)

Source: Internet
Author: User

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> 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.