bayeux

How can I connect GWT to CometD/Bayeux events?

旧城冷巷雨未停 提交于 2019-12-23 17:07:00
问题 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 layer - and from there, route a call into GWT Java code via a JSNI - but there doesn't appear to be any support in GWT directly for using long push or async

How can I start ajax push website (activemq or cometd or something else)?

天大地大妈咪最大 提交于 2019-12-20 02:54:36
问题 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 saying that it is very hard to set-up and get it work. Now i'm confused before giving a start, please tell me my way :) What's the optimum way of configuring an ajax

Duplicate instance of Bayeux Server created

不羁岁月 提交于 2019-12-13 18:35:08
问题 I'm having a problem with my CometD Application. It looks like its creating multiple instances of the Bayeux Server. My configuration Files look like the following and i'm using Web Sockets as Transport/GigaSpaces to deploy the Application (which uses its own embedded jetty Server). Just wondering if I've misconfigured something in the following setup? WEB.XML: <?xml version="1.0" encoding="UTF-8"?> <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml

java client to subscribe to cometd channels

江枫思渺然 提交于 2019-12-12 04:30:43
问题 Our application that will act as a client needs to subscribe to an external system that uses cometd to deliver unsolicited notifications to clients. Is there a way to achieve this without cometd libraries (via apache HttpClient for instance)? Java version mismatch is the problem - we use 1.6, but cometd require 1.7 or higher. thanks in advance 回答1: CometD 2.x, albeit not under development anymore, supports back to JDK 5. The underlying protocol (Bayeux) is the same, so I expect a CometD 2.x

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

faye is not available on client browser for node js

北城余情 提交于 2019-12-08 11:31:37
问题 I have created a sample application which is a chat server using nodejs + faye + epxress which is running fine on my local machine and I able to send message to server and publish it to client browser. But when I deployed my app on Openshift it is not working. I am able to send message but I am not able to publish message. Here is my code snippet Server.js var path = require('path');var http = require('http'), express = require('express'), faye = require('faye'); var bodyParser = require(

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

Difference between async servlet long poll and bayeux protocol (Comet)

梦想与她 提交于 2019-12-03 06:20:45
问题 What is the difference between a simple Async servlet and the Comet / Bayeux protocol? I am trying to implement a "Server Push" (or "Reverse Ajax") kind of webpage that will receive updates from the server as and when events occur on the server. So even without the client explicitly sending a request, I need the server to be able to send responses to the specific client browser. I understand that Comet is the umbrella term for these kind of technologies; with 'Bayeux' being the protocol. But

How the java client in cumulocity listens to events?

独自空忆成欢 提交于 2019-12-02 08:46:18
Aim is to build a java client that subscribe and listen to a channel. Then process the arriving events from the cumulocity server to hadoop. First it was difficult to connect(subscribe) to the cumulocity server using the java client. However, now we have subscriber in place( as we are able to get some value against it as explained in the code comments). Next we want is the subscriber listen to the channel that we have defined in cumulocity server. But we could not get any method or anything useful in the cumulocity java docs that will help to achieve this step. Here is the code. I have