Upon page load, this script sends five messages to topic://CHAT.DEMO.

  1. Start ActiveMQ 5.4.2.
  2. Load chat.html in a browser window (window A).
  3. Join the chat room in window A.
  4. Visit http://localhost:8161/admin/topics.jsp and note the count of enqueued messages for topic://CHAT.DEMO.
  5. Load chat-send.html in a new window (window B).
  6. Observe that 5 new messages have been enqueued by refreshing http://localhost:8161/admin/topics.jsp.
  7. If you have a means for observing XmlHttpRequests in your browser (like Firebug for Firefox), observe the traffic in window B. 5 messages have been sent, and the broker responds with 5 message id values.
  8. Observe that not all messages have been received in window A.