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 72E6E91F3 for ; Wed, 18 Apr 2012 07:07:35 +0000 (UTC) Received: (qmail 1972 invoked by uid 500); 18 Apr 2012 07:07:34 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 1318 invoked by uid 500); 18 Apr 2012 07:07:14 -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 1217 invoked by uid 99); 18 Apr 2012 07:07:10 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 18 Apr 2012 07:07:10 +0000 X-ASF-Spam-Status: No, hits=0.6 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of claus.ibsen@gmail.com designates 209.85.215.45 as permitted sender) Received: from [209.85.215.45] (HELO mail-lpp01m010-f45.google.com) (209.85.215.45) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 18 Apr 2012 07:07:05 +0000 Received: by lahe6 with SMTP id e6so6414241lah.32 for ; Wed, 18 Apr 2012 00:06:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=WfaOstXlT1dhFQrFOa+Pz/qX0xk3iP4VfBtjt54bSUE=; b=ja5hNlBCEefyK/8gr/NdRe2B9GkhlJymF3E7IYGzP7klG20N9U5AKPfNgNoa/KcSWx Dgk7qOhgXKRswg71wkXebTxo60hwx0+6oZZErSDpU6pMuHdls8XMx9rKtJzHRubgCeNt Z00u7HJxPQs9uBE1QbSzr8rVLLonfVkjTePjLCfJAs2UiE0p/AVwHZnGju9393T2otWZ ZqKNdC3Vy7LpfbRNI/VFDppuxa/N2T71djbTPe4cqiEMHlhm7R38MI7GJmOOw1OdLTw4 ao3p0HuozWbQ8VkLp07XqZD91qSd52CRfa8IJlGcw2UGj1SgDxVEz5krooc8m0/GzftP XC0g== Received: by 10.112.98.70 with SMTP id eg6mr549210lbb.13.1334732803447; Wed, 18 Apr 2012 00:06:43 -0700 (PDT) MIME-Version: 1.0 Received: by 10.112.75.130 with HTTP; Wed, 18 Apr 2012 00:06:22 -0700 (PDT) In-Reply-To: <1334729718764-5648290.post@n5.nabble.com> References: <1334729718764-5648290.post@n5.nabble.com> From: Claus Ibsen Date: Wed, 18 Apr 2012 09:06:22 +0200 Message-ID: Subject: Re: is it require to keep datatype of inputParams same for all routes?? To: users@camel.apache.org Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org Hi For starters I suggest to see the bean component docs and bean binding docs http://camel.apache.org/bean.html http://camel.apache.org/bean-binding.html On Wed, Apr 18, 2012 at 8:15 AM, bhushand wrote: > I am using camel routes. > > > > > > > method1() needs 5-6 different objects for processing so I have formed a Map > & put required objects in this map. I am passing map using > ProducerTemplate.sendBody("direct:startRoute",map). > I am getting all objects in method1() properly, no issue. > > But method2() has signature with input parameter as String, here it is > giving me conversion error saying "no converter available to convert map to > String". > For solving this problem, I put the input param of method2() in map & > passing this map onward. > > *Here unnecessarily I have to pass Map to all routes.* > > *Is it required that if I am passing an object of one type in sendBody() at > the start of route then I have to continue with same object for rest of > routes. * > > I tried for custom converter, but that have to register with camelcontext & > get applied for all routes. > How to solve this problem? Please help me. > Can we have route specific converters? if yes then please tell me how can I > use it. > > -- > View this message in context: http://camel.465427.n5.nabble.com/is-it-require-to-keep-datatype-of-inputParams-same-for-all-routes-tp5648290p5648290.html > Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen ----------------- CamelOne 2012 Conference, May 15-16, 2012: http://camelone.com FuseSource Email: cibsen@fusesource.com Web: http://fusesource.com Twitter: davsclaus, fusenews Blog: http://davsclaus.blogspot.com/ Author of Camel in Action: http://www.manning.com/ibsen/