Activemq 5.9 supports mqtt Based on websocket.

Source: Internet
Author: User
Tags stomp
Activemq 5.9 will support websocket-based mqtt Protocol Transmission

Author: chszs, reprinted with note. Blog homepage:Http://blog.csdn.net/chszs

More and more users want to use a browser to directly connect to the activemq server through websockets. After a long period of time, we have supported the stomp client, which can be used from JavaScript. Now, more mobile users try the same way. We have added support for more efficient binary mqtt protocol in activemq 5.9.

The good news is that you don't have to modify anything on the broker.CodeMqtt, stomp, and mqtt can all work on the same connector. When the client initializes the connection, the client recognizes the protocol they want to use. We also provided a good demo-using the PAHO JavaScript client of Eclipse. Use git to get the code down.
Http://git.eclipse.org/c/paho/org.eclipse.paho.mqtt.javascript.git/

Run

Bin/activemq console xbean: CONF/activemq-demo.xml

Visit the following address:
Http: // localhost: 8161/demo/mqtt/

Source code here: https://fisheye6.atlassian.com/browse/activemq/trunk/activemq-web-demo/src/main/webapp/mqtt? HB = true

If you are interested in sending messages to the Web and mobile terminals, you can see moreArticle:

Http://www.oscon.com/oscon2013/public/schedule/detail/28103

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.