Aaron Whiteside created CAMEL-8610: -------------------------------------- Summary: Add support for dynamic route templates Key: CAMEL-8610 URL: https://issues.apache.org/jira/browse/CAMEL-8610 Project: Camel Issue Type: New Feature Components: camel-core Affects Versions: 2.15.1 Reporter: Aaron Whiteside Priority: Minor
Add support for dynamic route templates {code:xml} <route id="my-template" template="true"> <from uri="{{myendpoint}}"/> <to uri="seda:{{seda.name}}?size={{seda.size:10}}"/> </route> {code} {code:java} CamelContext.startRouteFromTemplate(String templateRouteId, String newRouteId, Map<String,Object> templateProperties); {code} Usage would be something like: {code:java} Map map = new HashMap<>(); map.put("myendpoint", "direct:hello"); map.put("seda.name", "test"); camelContext.startRouteFromTemplate("my-template", "my-new-route-1", map); // or camelContext.startRouteFromTemplate("my-template", null, null); // auto assign new route id and supply no specific properties. {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)