cometd

Point to point model in cometd java

Hello Everyone, I am very new to Cometd java. I usually follow the following link http://cometdproject.dojotoolkit.org/ I wanted to know the basic concept of the point to point model in the cometd java. I have a service which should work like a chat service . my service looks like some thing like the following public class mys...

Bayeux code example for Resin 4

Anyone have working (simple) example source code of the Bayeux + Comet support in Resin 4? Thanks. (or if not, any for Jetty?) ...

How do I turn off DBUG level logging in BayeuxServer (embedded in Jetty)?

When running the CometD Bayeux implementation in Jetty (7.1.5), lots of DBUG level logging is output to the console. I've identified the logger as a org.eclipse.jetty.util.log.StdErrLog instance, but I'm not sure how to configure it. I'm using Jetty embedded within another application, so I tried the things suggested at http://docs.code...

cometd bayeux: handling user disconnection properly on page unload

Current setup: cometD servlet with jQuery cometd plugin. Let's say i have a simple chat room that currently has 2 users (userA and userB) connected to it. When userB navigates away from the page, I need userA to be notified that userB has left the room. Is there a way to let userA know that userB left without using the unload handler?...

Proper way to deliver messages to clients in Cometd?

I am working on an notification application using Cometd 2.1. I have a jQuery client that subscribes to my channel, and an authorizer that determines their user context. When they subscribe, I am making a subscription to Redis that may generate events in the future to send back to the client. The documentation says not to create specif...