You can take a look at the master component

https://github.com/apache/camel/blob/master/components/camel-master/src/main/docs/master-component.adoc



--
Andrea Cosentino 
----------------------------------
Apache Camel PMC Chair
Apache Karaf Committer
Apache Servicemix PMC Member
Email: [email protected]
Twitter: @oscerd2
Github: oscerd






On Wednesday, January 16, 2019, 4:08:41 PM GMT+1, Luiz Eduardo Guida Valmont 
<[email protected]> wrote: 





Hi!

Question: is it possible to configure a route so that at any given time 
there is at most one consumer?


I thought of using idempotentConsumers. The expression for the message 
id would be any constant, really. This way, when another consumer tries 
to process the exchange, it'd be discarded.


http://people.apache.org/~dkulp/camel/idempotent-consumer.html


But this seems like bending the rules more than what I'd like to. Hence 
the question. If there's a way to do a semaphore like step, that'd be 
lovely.


Thanks in advance!

Luiz

Reply via email to