Hi Morten, are you sure about this? Could it be that your own code is blocking the consumer.
I just run a simple example with the file consumer and an bean processor returning CompletionStage. >From what I observe is that the consumer thread keeps polling the filesystem even if I sleep in the thread that the producer bean started for the CompletionStage. Can you share your route and the code of the bean that's performing the processing? zoran On Wed, May 10, 2017 at 9:46 AM, mortalisk <[email protected]> wrote: > Hi, I am trying to return CompletableFuture from my bean method in order to > be able to consume more messages while processing while processing previous > ones. However, I see no difference in behaviour. I seems the consumer thread > is waiting for the future to complete. > > What is the purpose of the ability to return CompletableFuture from bean > methods? Am I seeing the expected behaviour? > > See the headline Asynchronous processing here: > http://camel.apache.org/bean-binding.html > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Async-bean-method-tp5799201.html > Sent from the Camel - Users mailing list archive at Nabble.com. -- Zoran Regvart
