Beruflich Dokumente
Kultur Dokumente
Messaging:
Programs communicate with each other by sending the data in
messages, not by
calling the program directly.
Queuing:
Programs communicate through Queue need not to run
concurrently.
EX:
Appl pgm - A Appl pgm - B Appl pgm - C
MQ-Series MQ-Series MQ-Series
| | |
| | |
| | |
| | |
| | |
--------------------------------------------------
Network
--------------------------------------------------
- The target application need not be in the run mode always. It can be
triggered when required (that is automatically started when a
message arrives or after a specified number of messages has
arrived)
Persistent Message:
Even when the system fails (Communication Fails) the messages
arrive at the destination.
Remote Queue:
When the queue is owned by the different queue manager.
Transmission Queue:
Send messages to the queue which are owned by the different Queue
Managers.
From this Transmission queue the data is sent to the remote Queue
Manager.
Initiation Queue:
Local queue to which the queue manager writes a trigger message.
Queue managers :
- Manages Queues & Messages.
Channels:
Queue Managers are connected by Message Channels Agents(MCA)
There are two MCA’s , a sender and a receiver.
The above is flow diagram which shows the flow of data from Program
1 to Program 2
- MQI collects the message (data) from program 1 and finds which
Remote Queue is required to pass the data to the destination.
- In the figure, the trigger monitor is a special program used just
to start channels. It is called the channel initiator. The process
used to start channels based on triggering is the same as
starting other applications
- Then the message is passed to the Transmission Queue (Xmit Q)
- As the channel Initiator has started the channel now the data is
ready to reach the destination.
- On the other side the Listener will be listening to incoming
messages.
- Once the data is arrived it starts the channel and retrieves the
data from Channel into the Local Q and hence passed into the
program.