Hello Team,
I've posted a question on the chat a while back but still no answer. Can
someone, please help with that?
routeTemplate("test-template")
.from("timer://foo?fixedRate=true&period=60000")
.log(LoggingLevel.INFO, "templated route")
interceptFrom().log(LoggingLevel.INFO, "interceptor triggered")
from("timer://foo?fixedRate=true&period=60000").id("single-route").log(LoggingLevel.INFO,
"single route")
templatedRoute("test-template").routeId("templated-route")
and here are the generated routes:
<routes xmlns="http://camel.apache.org/schema/spring">
<route customId="true" id="templated-route" template="true">
<from uri="timer://foo?fixedRate=true&period=60000"/>
<log id="log1" loggingLevel="INFO" message="templated route"/>
</route>
<route customId="true" id="single-route">
<from uri="timer://foo?fixedRate=true&period=60000"/>
<interceptFrom id="interceptFrom1">
<log id="log2" loggingLevel="INFO" message="interceptor triggered"/>
</interceptFrom>
<log id="log3" loggingLevel="INFO" message="single route"/>
</route>
</routes>
Any help on that ?
https://camel.zulipchat.com/#narrow/stream/257298-camel/topic/templated.20route.20intercept
[https://aiopsgroup.com/wp-content/uploads/2020/06/aiopsgroup-logo.jpg]<https://www.aiopsgroup.com>
Nikolay Dechev
Software Architect
mail: [email protected]<mailto:[email protected]>
mobile: +359888667982<tel:+359888667982>
EU: +31 20.299.0089<tel:+31%2020.299.0089>
US: +1 628.222.7007<tel:+1%20628.222.7007>