我正在使用活动的mq生成jMs主题消息,我希望能够从javasript订阅特定主题。 我需要一个完整的例子来说明如何做到这一点。
非常感谢
答案 0 :(得分:2)
您可以使用这样的websockets https://github.com/apache/activemq/tree/master/activemq-web-demo/src/main/webapp/websocket
https://github.com/jmesnil/stomp-websocket/blob/master/example/chat/index.html
http://activemq.apache.org/websockets.html
有许多库和示例https://github.com/krukow/stomple/blob/master/example/transactional-chat.html