Publish/subscribe hierarchy example: Scenario 1
Set up a publish/subscribe hierarchy topology using point-to-point channels with queue manager name alias.
About this task
These scenarios set up a publish/subscribe hierarchy in
different ways to establish the connection between queue managers.
These scenarios all use a parent queue manager called QM1
,
and two child queue managers called QM2
, and QM3
.
Scenario 1 is split into smaller sections to make the process easier to follow.
Scenario 1 part 1: Create the queue managers
Procedure
Scenario 1 part 2: Point-to-point channel connections
About this task
Establish point-to-point channel connections between queue managers using a queue manager alias with the same name as the parent queue manager.
Procedure
Scenario 1 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 1 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.