You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (Jira)" <ji...@apache.org> on 2022/11/27 13:09:00 UTC
[jira] [Created] (CAMEL-18764) camel-core - templatedRoute builder from Java cannot use templates from other DSLs
Claus Ibsen created CAMEL-18764:
-----------------------------------
Summary: camel-core - templatedRoute builder from Java cannot use templates from other DSLs
Key: CAMEL-18764
URL: https://issues.apache.org/jira/browse/CAMEL-18764
Project: Camel
Issue Type: Bug
Components: camel-core
Reporter: Claus Ibsen
Fix For: 3.20.0
Adding this to camel-example-routestemplate-xml
{code}
package org.apache.camel.example;
import org.apache.camel.BindToRegistry;
import org.apache.camel.builder.RouteBuilder;
@BindToRegistry
public class MyRoute extends RouteBuilder {
@Override
public void configure() throws Exception {
templatedRoute("myTemplate")
.parameter("name", "Jack")
.parameter("greeting", "Hello from Java");
}
}
{code}
Should make the templatedRoute able to use the template that is defined in XML.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)