彗星与玻璃鱼 [英] Cometd with glassfish

查看:140
本文介绍了彗星与玻璃鱼的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在尝试使用cometd http://cometd.org/ 与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

我在玻璃文档
http://docs.sun.com/app/docs/doc/820-4496/ggrgt? a = view
但是,这并没有给太多的东西,没有订阅和发布,就像在Jetty上的Cometd例子中发现的那样,只是长时间轮询

I found this in the glassish documentation http://docs.sun.com/app/docs/doc/820-4496/ggrgt?a=view But 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.

这篇关于彗星与玻璃鱼的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆