Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
3.18.0
-
None
-
Unknown
Description
I have loaded a routeConfiguration:
<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>
I have a RouteTemplate:
routeTemplate("myTemplate") .templateParameter("in") .templateParameter("out") .from("{{in}}") .routeConfigurationId("myError") .to("{{out}}");
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:
routeTemplate("myTemplate") .templateParameter("routeconfiguration_id","defaultErrorHandler") .templateParameter("in") .templateParameter("out") .from("{{in}}") .routeConfigurationId("{{routeconfiguration_id}}") .to("{{out}}");
Thus adding the routeConfigurationID through a templateParameter.
Attachments
Issue Links
- duplicates
-
CAMEL-18262 Templated route exception handling not working
- Resolved
- links to