camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Aaron Whiteside (JIRA)" <>
Subject [jira] [Created] (CAMEL-8610) Add support for dynamic route templates
Date Thu, 09 Apr 2015 19:34:13 GMT
Aaron Whiteside created CAMEL-8610:

             Summary: Add support for dynamic route templates
                 Key: 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

<route id="my-template" template="true">
  <from uri="{{myendpoint}}"/>
  <to uri="seda:{{}}?size={{seda.size:10}}"/>

CamelContext.startRouteFromTemplate(String templateRouteId, String newRouteId, Map<String,Object>

Usage would be something like:
 Map map = new HashMap<>();
 map.put("myendpoint", "direct:hello");
 map.put("", "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.

This message was sent by Atlassian JIRA

View raw message