彗星与玻璃鱼

发布于 2024-10-06 00:48:41 字数 379 浏览 1 评论 0 原文

我一直在尝试 tp get cometd http://cometd.org/ 与 glassfish 服务器一起使用,但我不能运行聊天示例,似乎我缺少一些

我在玻璃文档中找到的 库 http://docs.sun.com/app/docs /doc/820-4496/ggrgt?a=视图 但这并没有提供太多,没有订阅和发布,如 Cometd 示例中使用 Jetty 那样,只是长轮询

如果我使用 cometd,我必须使用 jetty 服务器吗?

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

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

If I'm using cometd, must I use jetty server ?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

橘寄 2024-10-13 00:48:41

不知道你在过去 6 个月里是否有运气,但我遇到了以下情况:

http://developers .sun.com/appserver/reference/techart/cometslideshow.html

摘录:

  1. 要将 Comet 与 GlassFish 一起使用,请将粗体红线添加到 glassfish-v2ur2\domains\domain1 中的 GlassFish domain.xml 文件中\配置目录:

    
        **<属性名称=“cometSupport”值=“true”/>**
    
    

Don't know if you had any luck with this in the last 6 month, but I came across the following:

http://developers.sun.com/appserver/reference/techart/cometslideshow.html

Exract:

  1. To use Comet with GlassFish, add the bold red line to the GlassFish domain.xml file in the glassfish-v2ur2\domains\domain1\config directory:

    <http-listener acceptor-threads="1" address="0.0.0.0"
        blocking-enabled="false" default-virtual-server="server"
        enabled="true" family="inet" id="http-listener-1" port="8080"
        security-enabled="false" server-name="" xpowered-by="true">
        **<property name="cometSupport" value="true"/>**
    </http-listener>
    
秉烛思 2024-10-13 00:48:41

我在 GlassFish 服务器上成功运行 CometD。您不能将属性“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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文