MQ Series Reference
MQ Series Reference
MQ Series Reference
MQ Series Reference
For z/OS
Contents
An Introduction to MQSeries Messaging and Queuing...................................................................................
3 What is MQSeries?...........................................................................................................................................
3 MQSeries Objects................................................................................................................................ . . . . . . . . .
s.......................................................................................................................................................................... 4
1.5 Pic: Message Flow Between Applications........................................................................................................7
Frequently used APIs¶ in Application Programs.................................................................................. . . . . . . . . . . . . 7
1.6 Need for API:.................................................................................................................................................................. 7
code............................................................................................................................ . . . . . . . . . . . . . . .32
Reference........................................................................................................................................ . . . . . . . . . . . . . . . 33 10.0
3.A one-way message, as you would expect, doesn¶t need a reply, though it can
carry data.
4. A report message is used when something unexpected occurs. For example, if the data in a reply message is not usable, the
receiving program might issue a report message.
Most useful report messages are generated by the Queue Manager. For example,
Delivery confirmation.
Messages can have a ³time-to-live´, called Expiry. A message that has not been
delivered before its expiration is removed (not given to an app)
What to do with undeliverable messages? Each queue manager can have a dead-letter
queue.
Messages can be individually designated persistent or non-persistent (persistent
messages are logged to enable recovery)
Message Correlator - select which message to get from queue
Message Priority - retrieve messages in different order of put
Segmented Messages - allows ending of VERY LARGE messages (> 100 MB)
A message can contain a ³reply to´ address (the name of a Queue Manager and
Queue). This tells the receiving application where any response should be sent.
Messages are added and removed from queues in Units of Work
The smallest Unit of Work is one message.
Units of work are atomic.
When an app reads a message from a queue, a message ³appears´ to have been
removed, but in fact, it is still in storage until the app ³commits´ the
c
c