Running the example
After setting up the sample, we can run the sample.
For Configuration 1:
- Start queue managers QMG1, QMG2, and QMG3.
- Start channel initiators for QMG2 and QMG3.
- Start the listeners on QMG1 to listen to port 1414, QMG2 to listen on port 1415, and QMG3 to listen on port 1416.
- Start sender channels on QMG1, QMG2, and QMG3.
- Start the payroll query requesting application connected to QMG1.
- Start the payroll server application connected to QMG3.
- Submit a payroll query request to QMG3 and wait for the payroll reply.
For Configuration 2:
- Start queue managers QMG1, QMG2, and QMG3.
- Start the channel initiator for QMG2.
- Start the listeners on QMG1 to listen on port 1414, and QMG2 to listen on port 1415.
- Start the sender channel on QMG1 and QMG2.
- Start the payroll query requesting application connected to QMG1.
- Start the payroll server application connected to QMG3.
- Submit a payroll query request to QMG3 and wait for the payroll reply.
For Configuration 3:
- Start queue managers QMG1, QMG2, and QMG3.
- Start the channel initiator for QMG2.
- Start the listeners on QMG1 to listen on port 1414, and QMG2 to listen on port 1415.
- Start sender channels on QMG1 and QMG2.
- Start the payroll query requesting application connected to QMG1.
- Start the payroll server application connected to QMG3.
- Submit a payroll query request to QMG3 and wait for the payroll reply.
Parent topic: Example MQ configuration for z/OS using intra-group queuing