ArticleslgStudy

science

IBM MQ

IBM MQ is a science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand IBM MQ rather than just read about it. In short: IBM MQ is a family of message-oriented middleware products that IBM launched in December 1993. It was originally called MQSeries, and was renamed WebSphere MQ in 2002 to join the suite of WebSphere products.

Key takeaways

  • IBM MQ belongs to science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect IBM MQ to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of IBM MQ from memory before moving on to harder problems.

Reference excerpt

IBM MQ is a family of message-oriented middleware products that IBM launched in December 1993. It was originally called MQSeries, and was renamed WebSphere MQ in 2002 to join the suite of WebSphere products. In April 2014, it was renamed IBM MQ. The products that are included in the MQ family are IBM MQ, IBM MQ Advanced, IBM MQ Appliance, IBM MQ for z/OS, and IBM MQ on IBM Cloud. IBM MQ also has containerised deployment options. MQ allows independent and potentially non-concurrent applications on a distributed system to securely communicate with each other, using messages. MQ is available on a large number of platforms (both IBM and non-IBM), including z/OS (mainframe), IBM i, Transaction Processing Facility, UNIX (AIX, HP-UX, Solaris), HP NonStop, OpenVMS, Linux, and Microsoft Windows.

MQ components The core components of MQ are:

Message: Messages are collections of binary or character (for instance ASCII or EBCDIC) data that have some meaning to a participating program. As in other communication protocols, storage, routing, and delivery information is added to the message before transmission and stripped from the message prior to delivery to the receiving application. Queue: Message queues are objects that store messages in an application. Queue Manager: a system service that provides a logical container for the message queue. It is responsible for transferring data to other queue managers via message channels. Although not strictly required for message-oriented middleware, is an IBM MQ prerequisite. Queue managers handle storage, timing issues, triggering, and all other functions not directly related to the actual movement of data. Programs integrated with IBM MQ use a consistent application program interface (API) across all platforms.

Messaging types MQ supports point-to-point and publish–subscribe messaging.

APIs APIs directly supported by IBM include:

IBM Message Queue Interface (MQI) for C, COBOL, PL/I, Java, Rexx, RPG, and C++ Java Message Service (JMS) XMS for C/C++ and .NET .NET REST SOAP IBM lists alternative protocols as "APIs" as well. These include:

MQTT (integral part of the MQ Telemetry component) AMQP 1.0 (optional addition) Additional APIs (not officially supported) are also available via third parties, including:

Perl interface (developed and contributed by Hildo Biersma), available from CPAN. Python interface PyMQI (originally developed by Les Smithson), available from PyPI PowerShell

Features One-time delivery: MQ uses once and once only delivery. This quality of service typically prevents message loss or duplication. Asynchronous messaging: MQ provides application designers with a mechanism to achieve non-time-dependent architecture. Messages can be sent from one application to another, regardless of whether the applications are running at the same time. If a message receiver application is not running when a sender sends it a message, the queue manager will hold the message until the receiver asks for it. Ordering of all messages is preserved, by default this is in FIFO order of receipt at the local queue within priority of the message. Data transformation: e.g. Big Endian to Little Endian, or EBCDIC to ASCII. This is accomplished through the use of message data exits. Exits are compiled applications that run on the queue manager host, and are executed by the IBM MQ software at the time data transformation is needed. Message-driven architecture framework: IBM MQ allows receipt of messages to "trigger" other applications to run. Range of APIs: It implements the Java Message Service (JMS) standard API, and also has its own proprietary API, known as the Message Queuing Interface (MQI), which preceded the JMS several years in existence. As of version 8.0.0.4, MQ also supports the MQ Light API. Clustering: Multiple MQ implementations share the processing of messages, providing load balancing.

Communication Queue managers communicate with the outside world either through:

Bindings: a direct software connection. Generally faster, but limited to programs running on the same physical host as the queue manager. A network or "client" connection: applications using a client connection can connect to a queue manager on any other host in the network. The physical location of the queue manager is irrelevant, as long as it is reachable over the network. SNA APPC, TCP/IP, NetBIOS, and SPX may be used. There is also a MQ Internet Pass-Thru (MQIPT) for use over the TCP/IP Internet.

Communication between queue managers This relies on a channel. Each queue manager uses one or more channels to send and receive data to other queue managers. A channel is uni-directional; a second channel is required to return data. In a TCP/IP based network, a channel sends or receives data on a specific port. Channel types:

Sending channel: has a defined destination and is associated with a specific transmission queue (the mechanism by which messages are queued awaiting transmission on the channel). Receiving channel: receives data from any other queue manager with a sending channel of the same name. When a receiving channel receives a message, it is examined to see which queue manager and queue it is destined for. In the event of a communications failure, MQ can automatically re-establish a connection when the problem is resolved. The listener is the application's network interface to the queue manager. The listener detects connections from incoming channels, and manages the connection of the sending channels to the receiving channels. In a TCP/IP network, the listener will "listen" for connections on a specific port.

Transmitting data to a queue on another queue manager Queue types:

… excerpt ends here. Continue reading the full article.

Worked examples

Example 1 — a first encounter with IBM MQ

Start with the simplest possible case. Write down what IBM MQ claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to IBM MQ before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about IBM MQ ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of IBM MQ

In research
IBM MQ appears in science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses IBM MQ in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
IBM MQ is common in secondary-school and first-year university syllabi. It links to neighbouring topics Managed file transfer, Message-oriented middleware, so understanding it makes those chapters shorter.
In everyday life
Look for IBM MQ outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “IBM MQ” →

How to study IBM MQ in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what IBM MQ means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain IBM MQ out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is IBM MQ in simple terms?

IBM MQ is a family of message-oriented middleware products that IBM launched in December 1993. It was originally called MQSeries, and was renamed WebSphere MQ in 2002 to join the suite of WebSphere products.

Why does IBM MQ matter?

Because it connects several science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study IBM MQ?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on IBM MQ.

Tags

  • Managed file transfer
  • Message-oriented middleware

Keep exploring