Beruflich Dokumente
Kultur Dokumente
Chapter 15 WebSphere MQ
Chapter objectives
Be able to:
Explain why messaging and
queuing is used
Chapter 15 WebSphere MQ
dead-letter queue
channel
QM
message-driven
remote queue
MQI
syncpoint
asynchronous application
Chapter 15 WebSphere MQ
MQI
MQI
Chapter 15 WebSphere MQ
MQI
MQI
A
C
Chapter 15 WebSphere MQ
Styles of Communication
Conversational
Program
A
Program
B
Program
A
Call and
return
Program
Program
A
Messaging
Program
A
Program
B
Program
C
Chapter 15 WebSphere MQ
Messages
Types of messages:
Datagram
Request
Reply
Report
Chapter 15 WebSphere MQ
Queue Manager
Program
DB2
Data
Queue
manager
Messages
Program
Program
Chapter 15 WebSphere MQ
Application
MQCONN
MQCONNX
MQOPEN
MQCLOSE
MQPUT
MQPUT1
MQGET
MQI
Queue manager
Process
object
Namelist
object
Minor calls
Queue
manager
object
MQBEGIN
MQCMIT
MQBACK
MQINQ
MQSET
Chapter 15 WebSphere MQ
Message layout
Message = Headers + Application data
Headers
10
Application
Chapter 15 WebSphere MQ
Queue types
System 1
Program A
MQPUT Q2
System 2
Program C
Program B
MQPUT Q1
MQGET Q1
MQGET Q2
MQI
Queue
manager
Queue
manager
QX
Q1
Q2
DLQ
Network - MCA
11
Chapter 15 WebSphere MQ
Channels
Program 1
Program 2
get
put
get
MQI
Local Q2
Channel
QMB.QMA
Receiver
MQI
Local Q1
Remote Q1
QMA
put
Remote Q2
QMB
XmitQ
QMB
Channel
QMA.QMB
Sender
Channel
QMB.QMB
Receiver
XmitQ
QMA
Channel
QMB.QMA
Sender
Network
12
Chapter 15 WebSphere MQ
Security
Local Queue Manager
MCA
MCA
MQMD
USERID
Application
Data
Database
Context
13
Chapter 15 WebSphere MQ
Data Integrity
DB
Synchronous
model
Write
Send
Receive
Write
2-phasa
Syncpoint
DB
Syncpoint
commit
Unit of work
DB
Unit of work 1
Asynchronous
model
Write
Put
Syncpoint
Get
q
Unit of work 2
Write
Syncpoint
DB
Unit of work 3
14
Chapter 15 WebSphere MQ
Car rental
MQPUT HOTEL
Flight
MQPUT
Reply-to
queue
Flight
Hotel
MQPUT
MQGET Reply-to-queue
15
Hotel
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
Chapter 15 WebSphere MQ
MQ functions
Common application programming interface (MQI)
Assured delivery: messages do not get lost and
they arrive only once
17
Chapter 15 WebSphere MQ
Summary
Messaging and queuing enables communication between
applications on different platforms.
18