cometd

Jetty 9 “--module” instead of “OPTIONS”

前提是你 提交于 2019-12-11 09:28:00
问题 I am trying to switch Jetty from 7.6 to 9.2. I read and understood that "OPTION" will no more work. So I changed my command from java -jar start.jar --ini **OPTIONS**=server,jmx,resources,websocket,ext,plus,jsp,annotations /u/khandela/project/base//etc/config/cometd/cometd_jetty_config.xml to start.jar --ini **--module**=server,jmx,resources,websocket,ext,plus,jsp,annotations /u/khandela/project/base//etc/config/cometd/cometd_jetty_config.xml But I got below warning: WARNING: ** Unable to

Android, Cometd : Cometd sending alternate messages

我只是一个虾纸丫 提交于 2019-12-10 15:34:30
问题 I am working on an Android application in which I am implementing Chat functionality. The chat is quite fast given the usage of Cometd, but for some reason, Cometd is sending alternate messages. If it sends message-1, it doesn't send message-2, then 3 is sent, so on and so-forth. This is a very strange behaviour and hard to isolate the problem as there is no error. I added system logs to check if the onClick method is getting called and the loop inside which sends the message. Also, I added a

Cometd Oort Cluster - Spring Integration

僤鯓⒐⒋嵵緔 提交于 2019-12-08 03:26:22
问题 Getting null pointer exception on trying to integrate spring with cometd oort cluster: <servlet> <servlet-name>cometd</servlet-name> <servlet-class>org.cometd.server.CometdServlet</servlet-class> <init-param> <param-name>transports</param-name> <param-value>org.cometd.websocket.server.WebSocketTransport</param-value> </init-param> <async-supported>true</async-supported> </servlet> <servlet-mapping> <servlet-name>cometd</servlet-name> <url-pattern>/cometd/*</url-pattern> </servlet-mapping>

Cometd Oort Cluster - Spring Integration

偶尔善良 提交于 2019-12-06 21:53:29
Getting null pointer exception on trying to integrate spring with cometd oort cluster: <servlet> <servlet-name>cometd</servlet-name> <servlet-class>org.cometd.server.CometdServlet</servlet-class> <init-param> <param-name>transports</param-name> <param-value>org.cometd.websocket.server.WebSocketTransport</param-value> </init-param> <async-supported>true</async-supported> </servlet> <servlet-mapping> <servlet-name>cometd</servlet-name> <url-pattern>/cometd/*</url-pattern> </servlet-mapping> Found this information on internet :If you use Spring to configure CometD objects, then you must not use

Cometd with glassfish

有些话、适合烂在心里 提交于 2019-12-06 13:49:15
问题 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 ? 回答1: Don't know if you had any luck with this in the last 6 month, but I came across the

CometD publish a message back to a client

无人久伴 提交于 2019-12-06 11:15:52
问题 I am having a problem in sending back a message to a client. Below is my code JavaScript dojox.cometd.publish('/service/getservice', { userid : _USERID, }); dojox.cometd.subscribe('/service/getservice', function( message) { alert("abc"); alert(message.data.test); }); Configuration Servlet bayeux.createIfAbsent("/service/getservice", new ConfigurableServerChannel.Initializer() { @Override public void configureChannel(ConfigurableServerChannel channel) { channel.setPersistent(true); GetListener

Publish messages using CometD Java client that can be consumed by Javascript subscribers

ぃ、小莉子 提交于 2019-12-06 04:30:56
问题 I have a Java web application that uses CometD. The workflow is simple: I have defined a service that acts upon receiving messages on channel "/service/hello". This service expects a parameter "name". Based on this it creates a channel named: "/"+message.getDataAsMap().get("name") . To this channel it attaches a callback method that will send back a message to all subscribers. The Javascript client (uses dojo) publishes a message to the channel "/service/hello" and subscribes to the channel

Match jetty url-pattern to only root directory

限于喜欢 提交于 2019-12-05 22:14:58
问题 I would like to only password protect the root directory on my context path for a Jetty WebApp. My context path is /MyApp, so I would like to require a password for accessing: http://localhost:8080/MyApp But NOT for: http://localhost:8080/MyApp/cometd My current set up is below (pay attention to the url-pattern): <security-constraint> <web-resource-collection> <web-resource-name>Private Page</web-resource-name> <url-pattern>/</url-pattern> </web-resource-collection> <auth-constraint> <role

CometD JavaScript的配置

廉价感情. 提交于 2019-12-05 09:04:38
原文地址: http://cometd.org/documentation/cometd-javascript/configuration CometD JavaScript的配置 sbordet在周一,2009年6月29日 - 13:26提交。 JavaScript的CometD API:配置和初始化 在您用这个思想设置您项目的骨架后,你可能想充分了解如何自定义和配置实现Cometd特性的参数。 整个API可以通过一个单一的原型名为org.cometd.Cometd的对象来调用。 Dojo工具包中有一个名称为dojox.cometd的对象实例来调用,而jQuery则是用 $.cometd 。 默认的cometd对象已经被实例化并配置了默认值,但是还没有开始任何Bayeux通信。 在它可以启动任何Bayeux通信之前,它需要一个强制性参数:Bayeux服务器的URL。 有2个方式配置此参数: / /第一个方式:URL字符串 cometd.configure(“http://localhost:8080/cometd”); / /第二个方式:配置对象 cometd.configure({ url:“http://localhost:8080/cometd” }); 第一种方式是第二种方式的简写。 不过,第二种方式允许配置其他配置参数, 目前有的参数如表: 参数名称 要求 默认值

Cometd with glassfish

南笙酒味 提交于 2019-12-04 19:20:04
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 ? 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: To use Comet