Red Hat DocumentationFuse Message BrokerToggle FramesPrintFeedback

Talk Application

What the sample does

In the Talk application, whenever a text message is sent to a given queue, all active Talk applications that are waiting to receive messages on that queue take turns receiving the message at the front of the queue.

Running the sample

To run the Talking sample do the following:

  1. In window 1, enter ant talk1.

  2. In window 2, enter ant talk2.

  3. In window 3, enter ant talk3.

  4. In the Talker1 window, type 1, and then press Enter.

    The text is displayed in only one of the other Q1 receiver windows. A point-to-point message has only one receiver.

  5. Again, in the Talker1 window, type 2, and then press Enter.

    The text is displayed in the other Q1 receiver window. Multiple receivers on a queue take turns receiving messages.

  6. In the Talker1 window, create several messages, such as 3 ,4, ..., 9.

    Important

    Be sure to press Enter between each message.

    One of the Q1 receivers gets messages 1, 3, 5, 7, 9 while the other gets 2, 4, 6, 8.

    If you opened another Talker_2 or Talker_3 window, the distribution to the Q1 receivers would be 1, 4, 7 for the first, 2, 5, 8 for the next and 3, 6, 9 for the third.

Stopping the sample

To stop all the sessions, press Ctrl+C in each of the windows.

Comments powered by Disqus