Upon page load, this script sends five messages to topic://CHAT.DEMO.
- Start ActiveMQ 5.4.2.
- Load chat.html in a browser window (window A).
- Join the chat room in window A.
- Visit http://localhost:8161/admin/topics.jsp and note the count of enqueued messages for
topic://CHAT.DEMO.
- Load chat-send.html in a new window (window B).
- Observe that 5 new messages have been enqueued by refreshing http://localhost:8161/admin/topics.jsp.
- 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.
- Observe that not all messages have been received in window A.
- Sometimes you will see 'message one' and 'message five'.
- Sometimes you will see only 'message one'.