Questions tagged [bayeux]

Bayeux is a protocol for transporting asynchronous messages (primarily over HTTP), with low latency between a web server and a web client. The messages are routed via named channels and can be delivered: server to client, client to server, client to client (via the server).

The primary purpose of Bayeux is to support responsive bidirectional interactions between web clients, for example using using AJAX, and the web server.

Bayeux is a protocol for transporting asynchronous messages (primarily over HTTP), with low latency between a web server and a web client. The messages are routed via named channels and can be delivered:

  • server to client
  • client to server
  • client to client (via the server)

By default, publish subscribe routing semantics are applied to the channels.

Delivery of asynchronous messages from the server to a web client is often described as server-push.

The combination of server push techniques with an Ajax web application has been called Comet.

Bayeux seeks to reduce the complexity of developing Comet web applications by allowing implementors to more easily interoperate, to solve common message distribution and routing problems, and to provide mechanisms for incremental improvements and extensions.

See http://cometd.org/documentation/bayeux

80 questions
0
votes
1 answer

How to add request header to BayeuxClient

String url = "some_url"; HttpClient httpClient = new HttpClient(); httpClient.start(); Map options = new HashMap(); LongPollingTransport transport = new LongPollingTransport(options, httpClient); …
Łukasz
  • 1,980
  • 6
  • 32
  • 52
0
votes
1 answer

Writing my own trivial Bayeux client

I am trying to understand the Bayeux protocol. I haven't found a web-resource explaining how the bayeux client will technically work, in detail. From this resource, The Bayeux protocol requires that the first message a new client sends be a…
rents
  • 768
  • 1
  • 7
  • 22
0
votes
1 answer

Multiple Endpoints may not be deployed to the same path - cometd and tomcat7

I didn't find any promising answer to Multiple Endpoints may not be deployed to the same path though scouring through several stackoverflows and google groups cometd related topics. Cometd Version: 3.0.5 Tomcat Version: 7.0.55 BayeuxServer instance…
user2263197
  • 97
  • 1
  • 12
0
votes
1 answer

Cometd/Bayeux client in Android App

Has anybody implemented a Cometd/Bayeux client in a native Android App? I tried to use org.cometd.java:cometd-java-client:3.0.3 but it uses jetty HttpClient which has dependencies to java.lang.management.ManagementFactory which is not available on…
Thomas Einwaller
  • 8,873
  • 4
  • 40
  • 55
0
votes
1 answer

Bayeux server hangs on connect request

this is bugging me for almost two days. I'm writing Bayeux client. I use WebSocket-client library from Jetty and connecting to Faye server. I open a WS connection to the server (everything localhost) with handshake request:…
Tomas Zaoral
  • 499
  • 2
  • 5
  • 11
0
votes
1 answer

Adding custom fields to a subscription response using the faye ruby server

I'm trying to write a proof-of-concept chat application using faye (the chat example which is included in the distribution). In my proof-of-concept I want to send a full history of a chat channel when a client subscribes to a channel. My current…
bb-generation
  • 1,487
  • 12
  • 9
0
votes
1 answer

faye is not available on client browser for node js

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…
Pulkit
  • 3,953
  • 6
  • 31
  • 55
0
votes
1 answer

How to add a request header in Bayeux Client Request?

I am using the Bayeux Java Client, and I am trying to add a request header for all the requests made to the server, including the handshake request. Currently I am using : mTransport = new LongPollingTransport(options, httpClient) { …
Vishesh Joshi
  • 1,601
  • 2
  • 16
  • 32
0
votes
1 answer

Create android native feature using Bayeux Protocol

I am trying to create an Android project and get the Bayeux Java Client library working for it. I have the cometd library imported in my eclipse and I also added the projects to the build path of my project. My project builds fine, but on execution,…
Vishesh Joshi
  • 1,601
  • 2
  • 16
  • 32
0
votes
1 answer

Establish websocket in cometd unsuccessful

I write an application using cometd with bayeux server to send/receive message between server and client But when cometd create websocket to server, server always return code 400: "WebSocket connection to 'ws://localhost:8080/APServer/cometd'…
KhanhQuach
  • 153
  • 1
  • 1
  • 7
0
votes
2 answers

CometD Issues with Publishing Data to a Channel

I am new to cometd, I have planned to send a message to the server and get the message in my browser using cometd If i send a message it is successfully send to the server but couldn't get it in the browser private void testService() { String…
Jananan
  • 1
  • 3
0
votes
1 answer

Annotation Cometd Java Client

Cometd Documentation states: A good place in the code to perform subscriptions is in a */meta/handshake function. Since /meta/handshake listener are invoked in both explicit handshakes the client performs and in re-handshakes the server triggers,…
user2263197
  • 97
  • 1
  • 12
0
votes
1 answer

Bayeux Server Configuration Issue

We had an issue with our CometD/Gigaspaces application creating a duplicate instances of the Bayeux Server. See my previous question posted here. After investigating this issue with Gigaspaces, it turns out each bean defined in our Application…
user676567
  • 1,119
  • 9
  • 20
  • 39
0
votes
1 answer

Storing User Credientials in the Bayeux Server

I'd like to store the clients UserName and SessionId when a client subscribes to a particular channel. When i override canHandshake() i can get the user credentials using the following: userName = (String) authentication.get("userName"); sessionId =…
user676567
  • 1,119
  • 9
  • 20
  • 39
0
votes
1 answer

Notifying java event to JSF Bean

Is there any way to notify jsf/spring bean when aynchronous messages are received by a java program? Moreover, the java program is a Java BayeuxClient (Cometd) as a pojo. The program successfully receives messages on the meta channels and subscribed…
user2263197
  • 97
  • 1
  • 12