Download as ppt, pdf, or txt
Download as ppt, pdf, or txt
You are on page 1of 18

Introduction to z/OS Basics

Chapter 15: WebSphere MQ

2006 IBM Corporation

Chapter 15 WebSphere MQ

Chapter objectives
Be able to:
Explain why messaging and queuing is used Describe the asynchronous flow of messages Explain the function of a queue manager List three zSeries-related adapters

2006 IBM Corporation

Chapter 15 WebSphere MQ

Key terms in this chapter


local queue
channel message-driven MQI asynchronous application

dead-letter queue
QM remote queue syncpoint

2006 IBM Corporation

Chapter 15 WebSphere MQ

Synchronous communication model


B
MQI

MQI

1 eue Qu 2 eue Qu
MQI

MQI

2006 IBM Corporation

Chapter 15 WebSphere MQ

Asynchronous communication model


B
MQI

MQI

1 eue u Q 2 eue Qu

MQI

MQI

A C

2006 IBM Corporation

Chapter 15 WebSphere MQ

Styles of Communication
Conversational

Program A

Program B

Program A

Call and return

Program Program A A

Program A

Messaging

Program B

Program C

2006 IBM Corporation

Chapter 15 WebSphere MQ

Messages
Types of messages:
Datagram Request Reply Report

2006 IBM Corporation

Chapter 15 WebSphere MQ

Queue Manager
Program DB2 Data

Program Queue manager Messages

Program

2006 IBM Corporation

Chapter 15 WebSphere MQ

Message Queue Interface (MQI)

2006 IBM Corporation

Chapter 15 WebSphere MQ

Message layout

10

2006 IBM Corporation

Chapter 15 WebSphere MQ

Queue types
System 1 System 2

Program A

Program B

Program C

MQPUT Q2

MQPUT Q1

MQGET Q1

MQGET Q2

MQI

Queue manager

Queue manager

QX

Q1 Network - MCA

Q2 DLQ

11

2006 IBM Corporation

Chapter 15 WebSphere MQ

Channels
Program 1 get put Program 2 get put

MQI
Local Q2 Remote Q1 Local Q1

MQI
Remote Q2

QMA

XmitQ QMB

QMB

XmitQ QMA

Channel QMB.QMA Receiver

Channel QMA.QMB Sender

Channel QMB.QMB Receiver

Channel QMB.QMA Sender

Network

12

2006 IBM Corporation

Chapter 15 WebSphere MQ

Security
Local Queue Manager

MCA

MCA

MQMD

Application Data

Remote Queue Manager

USERID Context

Database

13

2006 IBM Corporation

Chapter 15 WebSphere MQ

Data Integrity
Synchronous model Write Send 2-phasa commit Unit of work

DB

Receive Write Syncpoint

DB

Syncpoint

DB

Write

Asynchronous model

q
Unit of work 1 Put Syncpoint

Get Write Syncpoint Unit of work 3

q DB
Unit of work 2

14

2006 IBM Corporation

Chapter 15 WebSphere MQ

Travel agency example revisited


Car MQPUT MQPUT CAR RENTAL MQPUT FLIGHT MQPUT HOTEL Car rental

Flight

MQPUT Reply-to queue Hotel

Flight

MQPUT

Hotel MQGET Reply-to-queue

15

2006 IBM Corporation

Chapter 15 WebSphere MQ

Interfacing to WebSphere MQ
MQ is available on many platforms
On z/OS it has interfacing to:
CICS

IMS
Batch or TSO

16

2006 IBM Corporation

Chapter 15 WebSphere MQ

MQ functions
Common application programming interface (MQI) Assured delivery: messages do not get lost and they arrive only once

No synchronous access needed


Message driven application Quicker development due to shielding of the network

17

2006 IBM Corporation

Chapter 15 WebSphere MQ

Summary
Messaging and queuing enables communication between applications on different platforms. WebSphere MQ is an example of software that manages messaging and queuing in the mainframe and other environments. With messaging, programs communicate by through messages, rather than by calling each other directly. With queuing, messages are retained on queues in storage, so that programs can run independently of each other (asynchronously).

18

2006 IBM Corporation

You might also like