Return-Path: X-Original-To: apmail-camel-issues-archive@minotaur.apache.org Delivered-To: apmail-camel-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 85CD718421 for ; Thu, 9 Jul 2015 10:24:05 +0000 (UTC) Received: (qmail 41860 invoked by uid 500); 9 Jul 2015 10:24:05 -0000 Delivered-To: apmail-camel-issues-archive@camel.apache.org Received: (qmail 41827 invoked by uid 500); 9 Jul 2015 10:24:05 -0000 Mailing-List: contact issues-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list issues@camel.apache.org Received: (qmail 41816 invoked by uid 99); 9 Jul 2015 10:24:05 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 Jul 2015 10:24:05 +0000 Date: Thu, 9 Jul 2015 10:24:05 +0000 (UTC) From: "Claus Ibsen (JIRA)" To: issues@camel.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CAMEL-8610) Add support for dynamic route templates MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CAMEL-8610?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14620273#comment-14620273 ] Claus Ibsen commented on CAMEL-8610: ------------------------------------ This is for XML routes, as java routes is just java code and you can template this using java code. > 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 > Fix For: Future > > > Add support for dynamic route templates > {code:xml} > > > > > {code} > {code:java} > CamelContext.startRouteFromTemplate(String templateRouteId, String newRouteId, Map 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)