Publish/subscribe hierarchy scenario 3: Using a cluster channel to add a queue manager
This is the third in a set of three scenarios that set up a publish/subscribe hierarchy in different ways to establish the connection between queue managers. This scenario uses a cluster channel to add a queue manager to a hierarchy.
About this task
This set of scenarios all use a parent queue manager called QM1
, and two child queue managers called QM2
, and QM3
.
Scenario 3 is split into smaller sections to make the process easier to follow. This scenario reuses Scenario 1 part 1, Scenario 1 part 3, and Scenario 1 part 4 from Publish/subscribe hierarchy scenario 1: Using point-to-point channels with queue manager name alias.
This scenario creates a cluster called
DEMO
where QM1
and QM2
are full repositories, and QM3
is a partial repository. Queue manager QM1
is the parent of queue managers QM2
and QM3
.
Scenario 3 part 1: Create queue manager and set PSMODE
Procedure
Scenario 3 part 2: Point-to-point channel connections
About this task
Establish point-to-point channel connections between queue managers a cluster.
Procedure
Scenario 3 part 3: Connect queue managers and define a topic
About this task
Connect the child queue managers QM2
and QM3
to the parent queue manager QM1
.
Procedure
Scenario 3 part 4: Publish and subscribe the topic
About this task
Use the amqspub.exe and amqssub.exe applications to publish and subscribe the topic.
Procedure
Results
The amqssub.exe applications in the second and third command windows receive the messages published in the first command window.