The importance of IBM WebSphere MQ for clustered environments and load balancing

Source: Internet
Author: User
Keywords IBM WEBSPHERE MQ load balancing clustered environment

Suppose a customer has an important application that uses ibm®http://www.aliyun.com/zixun/aggregation/13387.html ">WEBSPHERE®MQ as a messaging system, You need to upgrade your existing distributed queuing environment to handle new business and ensure high availability. As part of the upgrade, some queue managers in an existing environment will be part of a cluster and some queue managers will be provided separately. This article will introduce a concept proof design proposed by IBM.

Queue Manager Alias definition

The Queue Manager alias definition has 3 uses:

when sending a message, remap the queue manager name when sending a message, modify or specify whether the local queue manager is the desired target for the message when the message is received by the

Outgoing message: Remap Queue Manager name

The Queue Manager alias definition can be used to remap the queue manager name specified in a Mqopen call. For example, a Mqopen call specifies a queue name APPQ and a queue manager name Earth. The target Queue Manager has a Queue Manager alias definition similar to this:

DEFINE qremote (Earth) rqmname (MARS)

This definition specifies that when an application puts a message into the Queue Manager Earth, the queue Manager that will be used is MARS. If the local queue manager is Earth, the message is placed in the local queue appq. If the name of the local queue manager is not Earth, the message is routed to a transmission queue named Mars by changing the transport header to indicate Mars rather than Earth.

Incoming message: Targeting

A received Message Channel agent (MCA) opens the queue referenced in the transport header. If there is a Queue Manager alias definition that has the same name as the referenced queue Manager, the Queue manager name received in the transport header is replaced with the rqmname from that definition. There are two uses for this mechanism:

sends a message to another queue manager to modify the Queue manager name to the same

as the local queue Manager

Outgoing messages: Modifying or specifying a transport queue

Figure 1 shows a scenario where the message arrives at the queue Manager QM1, and the transport header that displays the queue name arrives at the queue Manager QM3. QM3 will be reached via QM2 in Multi-hop (multi-hopping) mode:

Figure 1

All messages passed to QM3 are captured on QM1, where the queue Manager alias is QM3 and contains the definition QM3 through the transport queue QM2. This definition is similar to the following:

DEFINE qremote (QM3) rname (') rqmname (QM3) XMITQ (QM2)

The queue Manager places messages on the transport queue QM2, but does not change the transport queue headers because the name of the target Queue Manager QM3 unchanged.

All messages that arrive at QM1 and display a transport header containing the queue name at QM2 are also placed on the QM2 transmission queue. In this way, messages with different targets are collected on a public transport queue for a suitable neighboring system for forwarding to their destinations.

Related Article

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.