As of May 31, 2023, we have updated our Code of Conduct.

Questions tagged [cometd]

CometD is a scalable HTTP-based event routing bus that uses a Ajax Push technology pattern known as Comet. The term 'Comet' was coined by Alex Russell in his post Comet: Low Latency Data for the Browser.

Filter by
Sorted by
Tagged with
0 votes
0 answers
17 views

CometD transport Exception in logs

seeing the below error in logs, not stopping the application flow but there is spike in threadcount. {failure={exception=org.cometd.common.TransportException: {httpCode=503}, message={ext={replay=...
KVL's user avatar
  • 65
0 votes
1 answer
106 views

Application response times are high with cometd calls

while executing performance test of salesforce application there are transactions with cometd calls. For such transactions, either the response time is high or I'm getting forbidden error "...
Aayushi's user avatar
0 votes
0 answers
54 views

salesforce streaming api with php or js

I'm new in salesforce. I have an application with php and salesforce. Salesforce api is calling from php ajax. Table data is getting from salesforce api and it tooks too much time for displaying ...
Akanksha's user avatar
1 vote
1 answer
100 views

How to add CometD 5x and above jars to Maven project

I’m not a Java developer, but I find myself having to update an old Maven Java command line project that uses a cometd 4x client library. Every since version 5x, cometd libraries inside the main Maven ...
Marco Luglio's user avatar
  • 3,453
0 votes
1 answer
43 views

Log4j Vulnerability in jetty jetty-hightide-7.6.1.v20120215/webapps/cometd.war

We are trying to mitigate the laetst log4j vulnerability in our application our scans show that jetty-hightide-7.6.1.v20120215/webapps/cometd.war is using the older version of log4j that is log4j.1 ...
vamsi's user avatar
  • 1,189
1 vote
1 answer
148 views

Flooding of message at side client from server channel and wrong message with CometD frame work

I am developing a client-server application, where I wanted to have a persistent connection between client-server, and I chose the CometD framework for the same. I successfully created the CometD ...
Afgan's user avatar
  • 1,022
0 votes
1 answer
84 views

Cometd: specifying max threads in java client

0 The cometd documentation says that the "max threads" property can be set on both client and server... but doesn't actually provide an example. I know this can't be the actual property name ...
bgiles's user avatar
  • 1,190
0 votes
1 answer
169 views

Cometd with Android: java.lang.RuntimeException: Could not find an implementation class

I am trying to implement a cometD client in a Kotlin Multiplatform App for android at the moment. Here are my android dependencies val androidMain by getting { dependencies { ...
Digvijay Upadhyay's user avatar
1 vote
1 answer
528 views

Salesforce Camel Kafka Connector converting message to weird format

We are producing events from Salesforce to Kafka via something in SF called platform events. To get these events into Kafka, we are using the Salesforce Kafka Source Connector from Camel. ...
user3554599's user avatar
1 vote
2 answers
177 views

Adding SSL to CometD

I am using CometD library for nodejs on server side using the https://www.npmjs.com/package/cometd-nodejs-client. The server (Genesys) that I am trying to connect uses SSL, due to SSL cert I am ...
Satpal's user avatar
  • 21
1 vote
1 answer
110 views

How does CometD handle ports in long polling?

Does a specific port handle all requests/responses from a client-side in long polling using CometD? If not how does it assign the ports for each request?
Shanan's user avatar
  • 97
0 votes
1 answer
550 views

How to view http traffic in jetty http client?

How to view http traffic in jetty http client ? I tried apache logger format to set 'org.eclipse.jetty' to TRACE level, still unable to view http traffic, similar to apache http client wire logging. ...
a3.14_Infinity's user avatar
0 votes
0 answers
99 views

Bayeuxclient disconnects

I'm implementing Bayeuxclient(long-polling) for cometD connections for asynchronous messaging. Intermittently I receive a disconnect message out of the blue ( I haven't found any exception either in ...
User21022021's user avatar
0 votes
1 answer
75 views

What is the behaviour of CometD implementation that use a synchronous buffer when the buffer is empty?

CometD 3.1.4 java implementation uses a buffer to keep track of the incoming message and this buffer has a default size of 2MB. When restarting from a disconnection, spikes can occur and you can ...
Edmondo's user avatar
  • 19.4k
0 votes
0 answers
170 views

Getting a 402 client unknown while trying to handshake with a CometD /Bayeux server

1- I'm trying to subscribe to a specific channel and to get a long-polling from one server, but I receive a client unknown Error 402. Did anyone face this issue before? Anything missing within the ...
melzonko's user avatar
0 votes
0 answers
656 views

How to subscribe to Salesforce Platform Event in a Python application?

I have been working on an app, in Python, to subscribe to the Platform Events generated in Salesforce. I know the basic working on Platform Events, it uses the Bayeux Protocol, long polling, and ...
Nand Arora's user avatar
0 votes
1 answer
588 views

salesforce Change Data Capture not sending change event

I am using firebase functions to subscribe to change events for opportunity using specified cometD. my handshake all is working but the change is not received at all. i have made sure that in setup ...
Moblize IT's user avatar
  • 1,176
2 votes
1 answer
646 views

Mulesoft with Salesforce Streaming API using CDC

I am working on a Mule API flow testing out the Salesforce event streams. I have my connector set up and subscribed to a streaming channel. This is working just fine when I create / update / delete ...
SBB's user avatar
  • 8,410
0 votes
1 answer
154 views

For cometd client wait for publish message in queue before shutting down

We are shutting down cometd client in the below fashion. Is there a way we can ensure that all the pending events are published ? Sometimes we are seeing issue where some of the events send just ...
user9482282's user avatar
0 votes
1 answer
120 views

Is there a compatibility table between cometd jar and jetty jar?

Is there a compatibility table between cometd jar and jetty jar? For example, if I want to upgrade cometd jar from 3.1.3 to 3.1.4 and currently we are using jetty jars of version 9.4.8, what is the ...
a3.14_Infinity's user avatar
2 votes
0 answers
482 views

CometD and Kafka Consumer

I am trying to implement a CometD application with kafka. Use Case: I establish a cometD connection when sending a message it publishes to Kafka Producer so far good. I have a Servlet listener to ...
rahul's user avatar
  • 67
0 votes
0 answers
83 views

Is there anyway to create a failover mechanism similar to kafka's "consumer group"?

We are trying to design an architecture where we have multiple instances of the same java service executing in a pool - but we only want ONE of these services in the pool to receive (and process) the ...
Richard Spackmann's user avatar
0 votes
2 answers
320 views

Java CometD Jetty protocol equivalent in javascript

webSocketClient = new WebSocketClient(); webSocketClient.start(); wsTransport = new JettyWebSocketTransport(null, null, webSocketClient); bayeuxClient = new BayeuxClient(url, wsTransport); ...
CosminO's user avatar
  • 4,988
-1 votes
1 answer
135 views

Cometd maxInterval configurations per session

Is there a way to configure the cometd server maxInterval per user session ? https://github.com/cometd/cometd-documentation/blob/master/src/main/asciidoc/java_server_configuration.adoc maxInterval ...
user9482282's user avatar
3 votes
2 answers
253 views

How do I refresh the token in a cometd client talking to a Salesforce Platform EventBus?

I'm using cometd to listen to platform events generated in Salesforce. My cometd client configuration code looks like this.client.configure({ url: `${this.org.instance_url}/cometd/46.0`, ...
Abhijit Dixit's user avatar
1 vote
2 answers
959 views

Cometd/bayeux client Issue

We have created .Net core windows service for consuming platform events from Salesforce(whenever a particular object created/updated in Salesforce want to fetch the information).We are using Cometd/...
Aneesh's user avatar
  • 29
0 votes
1 answer
61 views

CometD Failover Ability - VM Switch During Restart

I have a chat implementation working with CometD. On front end I have a Client that has a clientId=123 and is talking to VirtualMachine-1 The longpolling connection between the VirtualMachine-1 and ...
Don Code's user avatar
  • 751
0 votes
1 answer
478 views

Salesforce Streaming API Handshake denied

I am using streaming api and cometD in community. It works fine for authorized users but still doesnt work for Guest user. For example, in anonymous window. And every time i receve Handshake denied w/ ...
programmer-228's user avatar
0 votes
1 answer
277 views

Does CometD application needs Websocket Protocol as mandatory

I have to send account update messages to the users so that the update can be shown in the browser directly like real time updates. Our existing application architecture is having Zuul 1.x.x Proxy, ...
UM1979's user avatar
  • 162
1 vote
0 answers
1k views

Keep connection alive using --sysctl with Docker run

I currently have a container that is running node services. There code running creates a subscription to the Salesforce Change data capture event bus using CometD. This has been working well but after ...
user1026498's user avatar
0 votes
1 answer
75 views

Error creating bean with name 'primeLocateCometDService' when spring boot 1.5.19 with CometD 3.0.9 and tomcat 8.5.37

I just upgrade a tomcat project to spring boot project with CometD. Here are two services classes named: PrimeLocateCometDService & AbstractRealtimeCometDPublishService When I start the project, ...
Lisa.liu's user avatar
0 votes
1 answer
425 views

"Unknown Bayeux Transport" for websocket transport running cometd on Tomcat

I'm trying to use CometD with websocket transport in my webapp, but the handshake with such transport fails with error "Unknown Bayeux Transport", and CometD always fallback to long-polling. I'm ...
Maura's user avatar
  • 15
1 vote
2 answers
2k views

Spring boot Consider defining a bean named 'servletContext' in your configuration

I have a project with several modules , and it's tomcat project.I need to convert to spring boot project. Here is a xml file with follow bean : ...
Lisa.liu's user avatar
0 votes
1 answer
357 views

Subscribe to Salesforce Change Data Capture using Apache Camel CometD component

I am trying to write a Java DSL route to subscribe to Salesforce Change Data Capture channel. However, my limitation is to not use username & password rather prefer OAuth for the authentication. ...
Vipin Sharma's user avatar
2 votes
2 answers
1k views

Java bayeux client disconnects with TimeoutException when idle

I'm initializing Bayeux client: SslContextFactory sslContextFactory = new SslContextFactory(true); HttpClient httpClient = new HttpClient(sslContextFactory); httpClient.start(); Map<String, ...
Tudor's user avatar
  • 2,164
1 vote
1 answer
1k views

Cometd Client not handshaking with cometD Server

I am new to CometD.I have a written a basic CometD Server in java and simple CometD Client.I am getting Successful response from postman for /meta/handshake,/meta/connect,/meta/subscribe channels. But ...
karthi chellam's user avatar
1 vote
0 answers
269 views

Cannot receive CometD messages on .NET

I am developing WinForm desktop application. I am successfully handshaking with CometD server and then sending change requests to the server. I am sure that requests are successfully received and ...
cihadakt's user avatar
  • 3,024
0 votes
1 answer
192 views

Cometd, Spring-security : Currently authenticated user not available inside a Listener

I am working on a Spring-MVC project where I am using Spring-security for authentication and authorization. Along with that, I am using Cometd library for sending messages over websockets. After ...
We are Borg's user avatar
  • 5,067
2 votes
1 answer
1k views

cometd returning "402::Unknown Client" error immediately after doing handshake

I have an application built using CometD Java that has been deployed to a number of client hosting instances and is working fine. However, in recent client implementation we having an issue where the ...
rwalker's user avatar
  • 311
0 votes
1 answer
210 views

Horizontal Scaling of CometD java clients

Can we scale a cometd java client horizontally? I.e if I have a container subscribed to cometd, can I have one more clients running as docker containers for load balancing? If yes, how to make sure ...
Radhakrishna Pemmasani's user avatar
1 vote
1 answer
1k views

Connect CometD client with Kafka producer

Is it possible to connect cometD client with Kafka producer? Any suggestions? Currently I am having a CometD client in python which is extracting data real time from a Salesforce object. Now I want ...
Gagan's user avatar
  • 1,745
1 vote
1 answer
1k views

Salesforce cometD: 401::Request requires authentication

I have to subscribe to cometD Salesforce channel and hence building cometD client in python. I am using the below python library. https://github.com/dkmadigan/python-bayeux-client And below is the ...
Gagan's user avatar
  • 1,745
5 votes
1 answer
3k views

Cometd/bayeux client + salesforce streaming API issue

I have my .NET client (windows service) which subscribes to Salesforce streaming API push topics. I am able to connect to Salesforce and can get the notifications to my client. Everything is working ...
Guru Prasad's user avatar
1 vote
0 answers
144 views

Consuming CometD messages with spring webflux

We have a system which publishes messages via cometD. I wrote a simple java program to establish a connection to the server then use the bearer token returned from the login to and consume messages ...
Kevin Hussey's user avatar
  • 1,562
0 votes
1 answer
779 views

what actions should be triggered for /meta/connect channel message reconnect=handshake?

My application is subscribed to some Broadcast Bayeux channel. It also listen's to meta channels to receive any advice in case of any connection failure via /meta/connect. Now my question is do I need ...
Dipankar Dey's user avatar
1 vote
1 answer
393 views

cometd: published message to a channel does not show up in subscribed listener

I am trying to publish a test data into the cometd-demo server channel members/hello/. handshake done, can get a subscribed message on callback and can get published message on publish() callback. But ...
Bhanuchander Udhayakumar's user avatar
1 vote
1 answer
652 views

cometd bayeux client can't get subscribed acknowledgement?

Actually i am running cometd-demo server in my local using maven jetty run shown in the doc https://docs.cometd.org/current/reference/ and trying to subscribe and publish something in a broadcast ...
Bhanuchander Udhayakumar's user avatar
1 vote
1 answer
174 views

Groovy cometd client LongPollingTransport.create() throws MissingMethodException

My groovy Code : import org.cometd.client.BayeuxClient; import org.cometd.client.transport.ClientTransport; import org.cometd.client.transport.LongPollingTransport; import org.eclipse.jetty.client....
Bhanuchander Udhayakumar's user avatar
2 votes
2 answers
2k views

cometd via websocket: "unknown bayeux transport"

Im trying to connect to a commetd server via websocket client. I used exactly the code from an official cometd demo on github without modifications and try to connect to http://localhost:8080/cometd/...
Magnus Lutz's user avatar
0 votes
1 answer
448 views

Can I read stream data into Apache Beam from a cometd topic using java?

I have a producer spitting messages out on a cometd topic. I need to pick and process the stream of messages from this topic. I have probably spent last two hours trying to find a way to ingest the ...
Gaurav Thakur's user avatar

1
2 3 4 5
7