Return-Path: X-Original-To: apmail-camel-users-archive@www.apache.org Delivered-To: apmail-camel-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D72CFF935 for ; Tue, 1 Oct 2013 15:58:45 +0000 (UTC) Received: (qmail 4393 invoked by uid 500); 1 Oct 2013 15:58:44 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 4357 invoked by uid 500); 1 Oct 2013 15:58:43 -0000 Mailing-List: contact users-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@camel.apache.org Delivered-To: mailing list users@camel.apache.org Received: (qmail 4349 invoked by uid 99); 1 Oct 2013 15:58:42 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Oct 2013 15:58:42 +0000 X-ASF-Spam-Status: No, hits=1.6 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,SPF_PASS,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy includes SPF record at spf.trusted-forwarder.org) Received: from [216.139.236.26] (HELO sam.nabble.com) (216.139.236.26) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Oct 2013 15:58:38 +0000 Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1VR2L3-00049G-M2 for users@camel.apache.org; Tue, 01 Oct 2013 08:58:17 -0700 Date: Tue, 1 Oct 2013 08:58:17 -0700 (PDT) From: mamouros To: users@camel.apache.org Message-ID: <1380643097655-5740703.post@n5.nabble.com> Subject: Creating routes dynamically like a for() MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org I would like to create a route for every query my sql route returns. >From this: from("sql:" + fromUri + "?dataSource=dataSource") .to("bean:SmsReceiver?method=creatingRoutes"); I want to make something hypothetically like this: for( from("sql:" + fromUri + "?dataSource=dataSource") ) { .to("bean:SmsReceiver?method=creatingRoutes"); } so if I have 3 entries in my table, I would create 3 routes. How is that possible. Is there any EIP that does that? -- View this message in context: http://camel.465427.n5.nabble.com/Creating-routes-dynamically-like-a-for-tp5740703.html Sent from the Camel - Users mailing list archive at Nabble.com.