Previewing the messaging interface  MQSeries publish/subscribe

Chapter 2: Understanding Real Time Messaging Services

MQSeries overview

IBM WebSphere MQSeries allows different applications to communicate asynchronously through queues across different operating systems, different processors, and different application systems.

WebSphere MQSeries includes the Message Queue Interface (MQI), a common low-level programming application program interface (API). Applications use MQI to read and write messages to the queues.

A Queue Manager is a process that manages a set of objects. These objects include queues, channels, and process definitions.

A queue object stores messages that are sent by applications to the Queue Manager. The following are types of queues:

A process definition defines a process that executes when incoming messages cause a trigger event.

A WebSphere MQSeries message consist of two parts:

WebSphere MQSeries message types include the following

When messages are sent, various message header properties can be set, such as expiration, persistence, priority, correlation ID, and reply queue.

Message grouping enables you to organize a group of messages into a logically named group. Within a group, each logical message can further be divided into segments. A group is identified by a name, each logical message within a group is identified by a sequence number (starting with 1), and each segment of a logical message is identified by the offset of the message data with respect to the logical message. Segmented messages are not supported by MQ pub/sub, and an attempt to send a segmented message results in an error.

In a queue, messages appear in the physical order in which they were sent to the queue. This means that messages of different groups may be interspersed, and, within a group, the sequence numbers of the messages may be out of order (the latter can occur of two applications are sending messages with the same group ID and partitioned sequence numbers).

When messages are received, the read mode can be either:

Receivers can select particular messages by specifying message header properties such as correlation ID or message ID.

When messages are read—as either destructive or nondestructive—the order in which they are returned can be physical or logical. The order is defined by the queue definition. The queue can be defined as being in priority order or first-in, first-out order.





Copyright © 2005. Sybase Inc. All rights reserved. MQSeries publish/subscribe

View this book as PDF