[ https://issues.apache.org/jira/browse/CAMEL-18328?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17573451#comment-17573451 ]
Raymond edited comment on CAMEL-18328 at 8/1/22 8:25 AM: --------------------------------------------------------- Nice, when it's in the 3.19.0-SNAPSHOT I will retest it. Note: I'll be on holiday from 02/08 was (Author: skin27): Nice, when it's in the 3.19.0-SNAPSHOT I will retest it. > RouteConfiguration with RouteTemplate doesn't work > -------------------------------------------------- > > Key: CAMEL-18328 > URL: https://issues.apache.org/jira/browse/CAMEL-18328 > Project: Camel > Issue Type: Bug > Components: camel-core > Affects Versions: 3.18.0 > Reporter: Raymond > Priority: Minor > Fix For: 3.18.1, 3.19.0 > > > I have loaded a routeConfiguration: > {code:java} > <routeConfiguration id="myError"> > <onException> > <exception>java.lang.Exception</exception> > <handled> > <constant>true</constant> > </handled> > <redeliveryPolicy maximumRedeliveries="0" > redeliveryDelay="5000"/> > <setExchangePattern pattern="InOnly"/> > <to uri="log:myError?showAll=true&multiline=true"/> > </onException> > </routeConfiguration>{code} > I have a RouteTemplate: > {code:java} > routeTemplate("myTemplate") > .templateParameter("in") > .templateParameter("out") > .from("{{in}}") > .routeConfigurationId("myError") > .to("{{out}}");{code} > But this routeConfigurationId doesn't seem to take effect. When calling the > routeConfigurationId directly from a route is works. > Can you reproduce this? > BTW: What I try to achieve: > {code:java} > routeTemplate("myTemplate") > > .templateParameter("routeconfiguration_id","defaultErrorHandler") > .templateParameter("in") > .templateParameter("out") > .from("{{in}}") > .routeConfigurationId("{{routeconfiguration_id}}") > .to("{{out}}");{code} > Thus adding the routeConfigurationID through a templateParameter. -- This message was sent by Atlassian Jira (v8.20.10#820010)