Cometd with glassfish

南笙酒味 提交于 2019-12-04 19:20:04

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>
    

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.

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