cometd

Parameters passed to cometd.subscribe()

Hopefully this isn't too specific/small a question, but I was wondering if anyone knew what the possible arguments are for the dojo cometd subscribe() function? The few examples I've seen indicate two parameters cometd.subscribe(channel, call_back); but a few implementations I've seen include a boolean and a possible object to the pa...

Clustering COMET using Terracotta

We're trying to cluster a COMET web application written in Java using JETTY 7.0's implementation of suspended servlet 3.0 API. Does anyone have experience using Terracotta in a suspend/resume servlet web application. Greg Wilkins of JETTY mentions some issues with COMET performance with Terracotta. Clustering COMETD with Terracotta ...

Python Comet Server

I am building a web application that has a real-time feed (similar to Facebook's newsfeed) that I want to update via a long-polling mechanism. I understand that with Python, my choices are pretty much to either use Stackless (building from their Comet wsgi example) or Cometd + Twisted. Unfortunately there is very little documentation reg...

How to get the Associate HttpSession per Channel Weblogic Publish-Subscribe Server

Hi, im using Weblogic 10.3 Publish-Subscribe Server (PubServer) in order to create Comet application. http://e-docs.bea.com/wls/docs103/webapp/pubsub.html We are utilizing JMS Message system to support Clustered environment, and everything works great and as expected, however now we need to support sending User Customized data like (In...

how can i start ajax push website (activemq or cometd or sth else)?

Hello, I want to start an application which will use ajax push, however the web server should be configured properly and i don't know how to start on server side components. I wanted to start with dojo's cometd and then read some blogs saying that activeMQ is older and flag carrier on ajax push thing, but there was also another blog sa...

Handling dojoX cometd unsuccessful subscription

Hi, I'm using a Bayeux server implementation for Netty and the latest version of dojoX cometd. When I refuse a subscription a /meta/subscription message is sent with successful set to false. Response: [{"channel":"/meta/subscribe","clientId":"abf5fb2408bf4f8e","successful":false,"subscription":"/badChannel","id":"3","timestamp":"2009-...

How to configure dojox.cometd for callback-polling?

So far I found some examples on how to configure dojox.cometd, but none of them configure the connectionType. I am currently more interested in callback-polling instead of the long-polling (that is the default one, as far as I know). Somebody can help me here? I must admit that the dojox documentation is quite obscure for me, and even t...

comet callback-polling and jetty-cometd implementation

I am using the cometd implementation that comes with the jetty server. I'd like to use the callback-polling transport, but when I try to connect to the comet server from javascript (note that the html page is in another web-server), jetty complains that the servlet does not supports the GET method. Is this an error/bug/whatever of the je...

Proper way to decode response in Dojo cometd java client

I want to push arbitrary XMLEncoded java objects back and forth using Dojo cometd channels, and I have a problem decoding the payload properly. In order to do this I have this send method in a stripped down version of the chat room client demonstration program: private void send(String string) { Map<String, Object> map = new HashMap<...

How can I connect GWT to CometD/Bayeux events?

I've got a GWT application, which periodically needs to update the screen with new tick items as they come in. We also have messages published by a CometD/Bayeux server (for a different AJAX application) and I'd like to consume them in my GWT. Of course, I can drop into JavaScript, hook up Dojo, and receive callbacks in the JavaScript ...

How can I debug Cometd / Grails 1.2.1 problem?

When I add the Cometd plugin to Grails 1.2.1, grail's "jetty" debug environment will no longer start up. I have been unable to debug this, not being familiar enough with the underlying components. (This is a big issue with Grails development in general. While it tries to hide everything from you, pretty soon you have to become an exper...

How to prevent org.mortbay.jetty.RetryRequest from being logged?

Using jetty Cometd with my grails application. Logs are full with org.mortbay.jetty.RetryRequest unhandled exception. Everything works good. As I know this exception must be thrown and must be unhandled for cometd to work. I'm just interesting how to prevent it form being logged? ...

Jquery and cometd problems with URL and 404 errors

I'm writing jquery client for cometd server (i'm using jquery.cometd.js plugin) and I'm running out of ideas why the simplest possible case doesn't work. The cometd server is behind apache (so it's running on this same domain) and all the requests are forwarded from uri http://wwwhost/cometd. The problem is that when I try to connect (...

Using com.sun.net.httpserver.HttpServer for comet/cometd

I would to use com.sun.net.httpserver.HttpServer to do comet/cometd. I am wondering how tough it is to do it so that I can take the waiting connections off the thread and into some waiting queue. Also, am I correct in that it looks like it is using nio? Also, is there any better examples? I always get caught up in the terminology...

System requirements for Cometd/Bayeux Usage on Android

Hi all, I'm trying to implement a Cometd/Bayeux server on Android using iJetty. The Jetty implementation itself works just fine serving static pages along with servlets. I am trying to up the ante a bit and create a Bayeux application on the phone but I'm having some trouble. I can hit the page that has the dojo cometd scripts on it,...

Are there any Bayeux clients in Python?

I need to connect to a Bayeux server form a wxPython APP. I would appreciate any hint about that. ...

Websocket vs Ajax vs cometd

I am about to use Ajax for a web dashboard w. real-time updates, planning on using Ajax but i hear websocket might be a good way to go. Websocket or Ajax? (cometd & jetty is also an option) ...

Problem with cometd and jetty 6 / 7

Hi chaps, I'm trying to get started with cometd (http://cometd.org/) and jetty 6 or 7, but I seem to be having problems. I've got an ant script that packages my code up into a war with the cometd 1.1.1 binaries and jetty binaries that are appropriate to the version of jetty I deploy the war to (so 7.1.2.v20100523 binaries when I deploy t...

dojo cometd call back

Hi, When I subscribe to a channel in cometd, I could receive msgs from multiple clients. The process is asynchronous. When two clients send msgs at the same time, only one of them is received. Javascript is single-threaded. How to get all msgs? Regards P G Patrudu. ...

Cometd point to point

I am very new to cometd in java. I am interested more about cometd in java but when i googled it i barely find one link which is the cometd link and which is not clear in documentation. Can some one post an example or a link which has a working example of publish subscribe and point to point? ...