Fuse Message Broker supports a hierarchical topic structure that allows wildcard subscriptions.
Each application instance specifies a publish topic and a subscribe topic, as follows:
Chat:
Publish to
jms.samples.chatSubscribe to
jms.samples.chat
DurableChat:
Publish to
jms.samples.durablechatSubscribe to
jms.samples.durablechat
HierarchicalChat:
Publish to
jms.samples.hierarchicalchatSubscribe to
jms.samples.*
You can see that each of the applications is publishing to a different
topic. However, the HierarchicalChat application is
subscribing to a topic that ends in asterisk (*), a wildcard that accepts any
topic with the root jms.samples. It is important to
note that this is referred to a hierarchical wildcard, as it must be
adjacent to dot delimiters.
To run the HierarchicalChatting sample do the following:
In window 1, enter
ant chat1In window 2, enter
ant durable1In window 3, enter
ant wildcardIn the wildcard window, enter some text and then press Enter.
The message is displayed in only that window.
In the chat1 window, enter some text and then press Enter.
The message is displayed in that window and in the wildcard window.
In the durable1 window, enter some text and then press Enter.
The message is displayed in that window and in the wildcard window.








