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

camel-core - templatedRoute builder from Java cannot use templates from other DSLs

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.19.0
    • 3.20.0
    • camel-core
    • None
    • Unknown

    Description

      Adding this to camel-example-routestemplate-xml

      package org.apache.camel.example;
      
      import org.apache.camel.builder.RouteBuilder;
      
      public class MyRoute extends RouteBuilder {
      
          @Override
          public void configure() throws Exception {
              templatedRoute("myTemplate")
                      .parameter("name", "Jack")
                      .parameter("greeting", "Hello from Java");
          }
      }
      

      Should make the templatedRoute able to use the template that is defined in XML.

      Attachments

        Issue Links

          Activity

            People

              davsclaus Claus Ibsen
              davsclaus Claus Ibsen
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: