What is Cometd ? Why it is used and how to work on that

不问归期 提交于 2019-12-20 20:27:11

问题


i'm just a beginner in cometd , and i'm interested and wanted to learn what cometd is and what for it is used i googled it out and found some resource.Under the following link 1.http://docs.cometd.org/reference/installation.html#d0e346.

I tried out with the given demo but i could not able to get the expected output from it. can anybody post some resource url's so that i can learn ?


回答1:


Disclaimer: I'm the CometD project leader.

CometD is a set of library to write web applications that perform messaging over the web.

Whenever you need to write applications where clients need to react to server-side events, then CometD is a very good choice. Think chat applications, online games, monitoring consoles, collaboration tools, stock trading, etc. See more at the preface.

CometD ships a JavaScript client library, a Java client library and a Java server library. This allows you to write applications in the browser with fine-grained logic and control on the server. The server library, being in Java, leverages the high scalability of the JVM and the powerful asynchronous I/O API that the JVM and the Servlet specification provide.

CometD is transport agnostic: you write your applications using high level APIs, and CometD takes care of delivering the messages over the wire using the best transport available: WebSocket or HTTP, also providing a transparent fallback in case WebSocket does not work.

CometD provides a clustering solution called Oort that allows you to scale horizontally your web applications.

CometD comes with a ton of features and an extended documentation along with tutorials and demos you can use as a starting point for your project.

Join CometD to start hacking on your CometD-based web applications.

The CometD tutorials are currently written for CometD 2.x, but a port to CometD 3.x (the current version of CometD) is currently underway, so that requires a bit of patience. But you can start right away by following the primer and deploying the demos.

I hope you can get started with CometD with the above references. Drop an email on the mailing lists for any help you may need.



来源:https://stackoverflow.com/questions/27317774/what-is-cometd-why-it-is-used-and-how-to-work-on-that

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!