I'm using an active mq to generated jMs topic messages and I would like to be able to subscribe to a particular topic from javasript. I need a full example on how to do this.
Thank you very much
You can work with websockets like this 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
There are many libs and examples https://github.com/krukow/stomple/blob/master/example/transactional-chat.html
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.