[英]How to subscribe to a JMS topic from javascript - need a full example
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. 我正在使用活动的mq生成jMs主题消息,并且希望能够从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 您可以使用像这样的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 https://github.com/jmesnil/stomp-websocket/blob/master/example/chat/index.html
http://activemq.apache.org/websockets.html http://activemq.apache.org/websockets.html
There are many libs and examples https://github.com/krukow/stomple/blob/master/example/transactional-chat.html 有许多库和示例https://github.com/krukow/stomple/blob/master/example/transactional-chat.html
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.