@Nikolay What are you trying to accomplish functionally?

On Fri, Sep 2, 2022 at 8:02 AM Claus Ibsen <claus.ib...@gmail.com> wrote:

> Hi
>
> It does not make as much sense to use intercept in templates as intercept
> is really for global scoped
> https://camel.apache.org/components/3.18.x/eips/intercept.html
>
> Also its a feature that is complex and a candidate for removal to make the
> DSL and routing engine better.
>
>
>
> On Fri, Sep 2, 2022 at 6:44 AM Nikolay Dechev
> <ndec...@aiopsgroup.com.invalid> wrote:
>
> > 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: ndec...@aiopsgroup.com<mailto:ndec...@aiopsgroup.com>
> >
> > mobile: +359888667982<tel:+359888667982>
> >
> > EU: +31 20.299.0089<tel:+31%2020.299.0089>
> >
> > US: +1 628.222.7007<tel:+1%20628.222.7007>
> >
> >
> >
>
> --
> Claus Ibsen
> -----------------
> http://davsclaus.com @davsclaus
> Camel in Action 2: https://www.manning.com/ibsen2
>

Reply via email to