I have a route that has to be asynchronously consumed and I'm using an direct component to refers to it as an alias.
<route id="producer_CUSTOMER_INTERACTIONS_ISSUES_RELATIONSHIPS_Topic">
<from uri="direct:test"/>
<pollEnrich aggregateOnException="false" id="pollEnrich1" timeout="-1">
<constant>file:mock/customer-interactions-issues-relationships?noop=true&idempotent=false</constant>
</pollEnrich>
<to uri="kafka:customer-interactions-issues-relationships?brokers=localhost:9092"/>
</route>
That route has to be consumed by:
<route id="1"><from uri="timer://foo?fixedRate=true&period=1&repeatCount=1000"/><to uri="direct:test"/></route>
<route id="2"><from uri="timer://foo?fixedRate=true&period=1&repeatCount=1000"/><to uri="direct:test"/></route>
<route id="3"><from uri="timer://foo?fixedRate=true&period=1&repeatCount=1000"/><to uri="direct:test"/></route>
<route id="4"><from uri="timer://foo?fixedRate=true&period=1&repeatCount=1000"/><to uri="direct:test"/></route>
I would like that each consumer route requests 1000x the mock content of producer_CUSTOMER_INTERACTIONS_ISSUES_RLATIONSHIPS_Topic
asyncrhonously, but, right now, it's syncrhonous as follows:
I've read about a SEDA component in Camel Documentation, but there isn't any example about how to use it in Blueprints :(