The MessageMonitor sample application provides an
example of a supervisory application with a graphical interface. By
subscribing with the wildcard syntax used in the
HierarchicalChat, the monitor gets messages on
all topics in the topic hierarchy. The application listens for any
message activity, and then displays each message in its window.
To start the MessageMonitor sample, enter ant
tmonitor in window 3.
The MessageMonitor Java window opens.
To send messages to the MessageMonitor do the following:
In window 1, enter
ant chat1, then typeHello, and press Enter.The message displays in the MessageMonitor window, noting that the message was received on the
jms.samples.chattopicIn window 2, enter
ant durable1, then typeHello, and press Enter.The message displays in the MessageMonitor window, noting that the message was received on the
jms.samples.durablechattopic.Because the MessageMonitor subscribes to the topic
jms.samples.*, messages are received from both publishers. TheChatandDurableChatapplications subscribe only to their respective topics.Click the button to empty the listed messages.








