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 10946189E1 for ; Wed, 23 Dec 2015 08:54:16 +0000 (UTC) Received: (qmail 97310 invoked by uid 500); 23 Dec 2015 08:54:15 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 97259 invoked by uid 500); 23 Dec 2015 08:54:15 -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 97248 invoked by uid 99); 23 Dec 2015 08:54:15 -0000 Received: from Unknown (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 23 Dec 2015 08:54:15 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id D1341C05A2 for ; Wed, 23 Dec 2015 08:54:14 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 3.487 X-Spam-Level: *** X-Spam-Status: No, score=3.487 tagged_above=-999 required=6.31 tests=[DKIM_ADSP_CUSTOM_MED=0.001, NML_ADSP_CUSTOM_MED=1.2, SPF_SOFTFAIL=0.972, URIBL_BLOCKED=0.001, URI_HEX=1.313] autolearn=disabled Received: from mx1-us-east.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id JauqzmM_SszK for ; Wed, 23 Dec 2015 08:54:07 +0000 (UTC) Received: from mwork.nabble.com (mwork.nabble.com [162.253.133.43]) by mx1-us-east.apache.org (ASF Mail Server at mx1-us-east.apache.org) with ESMTP id 941E9439C3 for ; Wed, 23 Dec 2015 08:54:05 +0000 (UTC) Received: from msam.nabble.com (unknown [162.253.133.85]) by mwork.nabble.com (Postfix) with ESMTP id D046C6E6B2F7 for ; Wed, 23 Dec 2015 00:52:14 -0800 (PST) Date: Wed, 23 Dec 2015 01:54:05 -0700 (MST) From: ghoshp29 To: users@camel.apache.org Message-ID: <1450860845032-5775389.post@n5.nabble.com> In-Reply-To: <1450860611333-5775388.post@n5.nabble.com> References: <1450860611333-5775388.post@n5.nabble.com> Subject: Re: Unable to resolve named parameter in camel route MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit One typo in the camel route syntax. Correct syntax used in application is below - from("timer://foo?period="+serverData.getTimer()).threads(serverData.getNumberOfInstances()).setBody(constant(serverData.getSql())).to("jdbc:" + serverData.getUrl() + serverData.getUserId()).setBody(constant("insert into new_raw_table_test (numbersubscribers, id) values(:?numbersubscribers, :?id)")). to("jdbc:" + serverData.getUrl() + serverData.getUserId()+"?allowNamedParameters=true&outputType=SelectOne&useHeadersAsParameters=true&resetAutoCommit=false").process(custom application logic); -- View this message in context: http://camel.465427.n5.nabble.com/Unable-to-resolve-named-parameter-in-camel-route-tp5775388p5775389.html Sent from the Camel - Users mailing list archive at Nabble.com.