WebSphere MQ Getting Started Guide

Source: Internet
Author: User

First, the basic concept (original address: Click to open the link)

For MQ, we need to know 4 nouns: Queue Manager, queue, message, channel; For programming designers, it is usually more about messages and queues, and for maintenance managers, the queue managers and channels are often more concerned.
If we compare the queue Manager to a database, then the queue is one of the tables, and the message is a record in the table.

    1. Queue: We can simply think of a queue as a container for storing messages.

    2. Queue Manager: The Queue Manager builds a standalone MQ runtime environment, which is the manager of Message Queuing to maintain and manage Message Queuing.

    3. Message: The smallest object in MQ; By default, the message can reach a default of 4MB. Messages can be broken into persistent messages and non-persistent messages. The so-called "persistent" meaning is whether the message can still be persisted after the MQ queue Manager restarts. Persistent messages are written to or read out of the queue and are recorded in log, so the performance is much worse than non-persistent messages.

    4. Channel: A channel is a one-way point-to-point communication connection between two queue managers, and messages can only flow in one direction in a channel. The communication between queue managers is implemented by configuring channels, and the queue managers on both sides of the channel should be able to correspond to the relevant parameters of the channel. Different communication protocols can be configured on the channel, which makes the programming interface independent of the communication protocol. The configurations on both sides of the channel must match and have the same name, otherwise they cannot be connected.

    5. RUNMQSC: Command line interface management tool; As a maintainer, we have two ways of dealing with MQ, one through the binary command tools provided by MQ (in the Bin directory of the MQ installation directory), and the other through command-line interaction management tools; but not entirely replaceable;
      RUNMQSC is a generic MQ object management tool that uses the MQSC command set to
      All-round management, but also the most direct and comprehensive management methods.
      The command set run by RUNMQSC is called MQSC (MQ Script command), and in RUNMQSC, all commands are converted to full capitalization before committing execution. So if you want to represent size-related strings, such as object names, enclose the string in quotation marks.
      Enter the following command to start the MQSC command: RUNMQSC [Queuemanagername]

OK, the concept is finished, here is an example to learn how to use them;
First, we need to create queue management to hold the queue. Once the queue Manager is available, the queue can be created, and the queue is created, which can be used to put and remove messages;

Second, queue status properties

WebSphere MQ Getting Started Guide

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.