RE: How to receive Server side events

2023-08-15 Thread Andrew McCarron
Thanks for the quick reply Mark! Not sure if this can be used with Camel, is there more info available on how to do that? Also, not sure about emailing you outside of the users group. Thanks again! Andy From: Mark Nuttall Sent: Tuesday, August 15, 2023 4:09 PM To: users@camel.apache.org Subject:

Re: How to receive Server side events

2023-08-15 Thread Mark Nuttall
https://www.baeldung.com/spring-server-sent-events On Tue, Aug 15, 2023 at 4:00 PM Claus Ibsen wrote: > Hi > > There is no component that out of the box supports SSE with Camel (to my > knowledge). > > We have a JIRA about this > https://issues.apache.org/jira/browse/CAMEL-16431 > > If you run i

Re: How to receive Server side events

2023-08-15 Thread Claus Ibsen
Hi There is no component that out of the box supports SSE with Camel (to my knowledge). We have a JIRA about this https://issues.apache.org/jira/browse/CAMEL-16431 If you run in a runtime like Spring Boot or Quarkus then they may have some HTTP template you can use for SSE. On Tue, Aug 15, 2

Re: Alternative for ThreadPoolRejectedPolicy.DiscardOldest in Camel 4?

2023-08-15 Thread Claus Ibsen
Hi Because discarding an exchange was bad in the first place, as it may have some work it was supposed to execute when its done (UnitOfWork). So use it with care to just discard it. Yes, implement your own logic for what you want to do. On Tue, Aug 15, 2023 at 9:54 PM Schmeier, Jannik wrote:

Alternative for ThreadPoolRejectedPolicy.DiscardOldest in Camel 4?

2023-08-15 Thread Schmeier, Jannik
Hi, I've been using the following code for creating an executor service that discards the oldest invocations when the queue is full. ThreadPoolBuilder poolBuilder = new ThreadPoolBuilder(getContext()); singleSplitExecutorService = poolBuilder.poolSize(1).maxPoolSize(1).maxQueueSize(200)

How to receive Server side events

2023-08-15 Thread Andrew McCarron
Greetings! I'm fairly new to both java and Camel, and I've been tasked with interfacing with a service that sends server side events. The server is our own mock server app that I can run in the debugger. I've tried to create a route that uses uri:http to connect to the service with the following