问题描述
我一直在尝试使用cometd 与glassfish服务器一起工作,但我无法运行聊天示例,似乎我缺少一些库
I have been trying tp get cometd http://cometd.org/ to work with glassfish server, but I couldn't run the chat sample, seems I'm missing some libraries
我在玻璃文档
但是,这并没有给太多的东西,没有订阅和发布,就像在Jetty上的Cometd例子中发现的那样,只是长时间轮询
I found this in the glassish documentationhttp://docs.sun.com/app/docs/doc/820-4496/ggrgt?a=viewBut this doesn't give much, no subscribe and publish as found in Cometd example with Jetty, just long polling
我正在使用cometd,我必须使用jetty服务器吗?
If I'm using cometd, must I use jetty server ?
推荐答案
我正在运行 CometD
在GlassFish服务器上成功完成。您不能将cometSupport属性添加到服务器中(否则它将不起作用)。
I am running CometD
successfully on a GlassFish Server. You must not add the property "cometSupport" to the server (otherwise it will not work).
关于项目,你会找到一个完整的文档。此外,我建议查看此其中还包括一个例子。
On the project website you will find a complete documentation. Moreover, I suggesto to check out this article which also includes an example.
这篇关于彗星与玻璃鱼的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!