ACTIVEMQ Pure Static routing configuration

Source: Internet
Author: User
      ACTIVEMQ Pure static routing configuration, used to transparently transfer messages between two servers. For example, there are two servers A and B, and we create a new message queue on Server A to transfer to the B server. This allows us to adopt a purely static routing configuration. This mode, a server's message directly to B server, a server production message, directly on the spot to the B server, while the B server received a server message (relative a server is a producer) to wait until the B server on the consumption of people over.        First install message Server A and B, note that the configuration port is inconsistent with a server port in the Activemq.xml configuration file of Server B. For example, a server port is 61616, then the B server can be configured to 61617. Similarly, the jetty.xml also needs to configure the Web server's port address and the a server do not conflict.        Configure the Activemq.xml file for a server, set up a pure static route, note that this configuration needs to be written in the persistent configuration <persistenceAdapter> before. <networkConnectors> <networkconnector uri= "static: (tcp://localhost:61617)" staticbridge= "true" >         <staticallyIncludedDestinations>                 <qu Eue physicalname= ">"/>         </staticallyIncludedDestinations> </ networkconnector> </networkConnectors>        above code stating that the delivery address is a B server (port 61617), Note that the Staticbridge parameter here sets a static route. Staticallyincludeddestinations a queue or broadcast that is also to be passed. Here the <queue physicalname= is used.> "/> is all queue messages. If written as <queue physicalname= "Foo,bar"/> Only the above two messages are synchronized. The following transmission queue message to a server, visible a server directly transparent delivery message (consumption)
b The server receives the message and waits for consumption.

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.