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 <bean id="myBean" class="com.foo.MyBeanClass"/> 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 <majied.ban...@cognizant.com> wrote: > Thank you so much > > Can you please elaborate on bean paramater binding with camel for Exception > object > > Fot this case what will be the below details > > <onException> > .. > <to uri="bean:myBean"/> > </onException> > > > <bean id="myBean" class="MyBean"> > <property name="??" value="??" /> > </bean> > > > > Public class MyBean{ > > // ?? variables types in beans > public void doSomething(Object body, Exception cause) { > > } > } > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Catch-camel-exception-in-java-code-tp5015714p5016288.html > Sent from the Camel - Users mailing list archive at Nabble.com. > -- Claus Ibsen ----------------- FuseSource Email: cib...@fusesource.com Web: http://fusesource.com Twitter: davsclaus, fusenews Blog: http://davsclaus.blogspot.com/ Author of Camel in Action: http://www.manning.com/ibsen/