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 2BB947115 for ; Wed, 23 Nov 2011 12:20:45 +0000 (UTC) Received: (qmail 26752 invoked by uid 500); 23 Nov 2011 12:20:44 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 26720 invoked by uid 500); 23 Nov 2011 12:20:44 -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 26712 invoked by uid 99); 23 Nov 2011 12:20:44 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 23 Nov 2011 12:20:44 +0000 X-ASF-Spam-Status: No, hits=0.6 required=5.0 tests=FREEMAIL_FROM,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.173 as permitted sender) Received: from [209.85.215.173] (HELO mail-ey0-f173.google.com) (209.85.215.173) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 23 Nov 2011 12:20:40 +0000 Received: by eaai10 with SMTP id i10so6449eaa.32 for ; Wed, 23 Nov 2011 04:20:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:content-transfer-encoding; bh=U79yNsECzjRRl1BWacurmkZWAXwpKBooGyVu9zlv11c=; b=C4n+LT80nVAAGDBChb2E+RhDxxoTnHyV1ki+4Y6WRhbhr2cvJsKPXG3x6mLmGx4TGR KBOm/JsL8WNlGWrVGPt46qnYd/77s/rToksRkEay4ty9AAcQLVjp49R+9o/2L3mFdipj w+8543yMBV4PNccMq+lZQiPgCvJ/AxEbR6/V8= Received: by 10.213.35.138 with SMTP id p10mr23654ebd.0.1322050819230; Wed, 23 Nov 2011 04:20:19 -0800 (PST) MIME-Version: 1.0 Received: by 10.14.99.5 with HTTP; Wed, 23 Nov 2011 04:19:58 -0800 (PST) In-Reply-To: <1322047034843-5016288.post@n5.nabble.com> References: <1322031453200-5015714.post@n5.nabble.com> <1322047034843-5016288.post@n5.nabble.com> From: Claus Ibsen Date: Wed, 23 Nov 2011 13:19:58 +0100 Message-ID: Subject: Re: Catch camel exception in java code To: users@camel.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi The bean parameter binding can happen automatic for certain types and conventions. Read more here http://camel.apache.org/bean-binding.html Also chapter 4 in the Camel in Action book covers all about using beans with Camel, incl. the parameter binding rules. So you only need to declare the And Camel figures out to invoke your bean. You can specify a method name to invoke, in case of ambiguity etc. But its all documented on that link above, and other wiki pages. (sort of, the book explains it more friendly of course). On Wed, Nov 23, 2011 at 12:17 PM, majiedahamed wrote: > Thank you so much > > Can you please elaborate on bean paramater binding with camel for Excepti= on > object > > Fot this case what will be the below details > > > =A0 .. > =A0 > > > > > =A0 =A0 =A0 =A0 > > > > > Public class MyBean{ > > =A0// ?? variables types in beans > =A0public void doSomething(Object body, Exception cause) { > > =A0} > } > > -- > View this message in context: http://camel.465427.n5.nabble.com/Catch-cam= el-exception-in-java-code-tp5015714p5016288.html > Sent from the Camel - Users mailing list archive at Nabble.com. > --=20 Claus Ibsen ----------------- 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/