Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-18328

RouteConfiguration with RouteTemplate doesn't work

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 3.18.0
    • 3.18.2, 3.19.0
    • camel-core
    • 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&amp;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

          Activity

            People

              rhuanrcoha Rhuan Rocha
              skin27 Raymond
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: