What version of Camel are you using?

On Wed, Nov 23, 2011 at 1:57 PM, majiedahamed
<majied.ban...@cognizant.com> wrote:
> Thanks..
>
> I went through the link
>
> 1)<bean id="myBean" class="MyBean"></bean>
>
> 2)<onException>
>   ..
>   <to uri="bean:myBean"/>
>  </onException>
>
> 3)My class goes like this
>        public void doSomething(Object body, Exception cause) {
>                cause.printStackTrace();
>        }
>
>
> And in the route when the exeption occurs,It is not printing the exception
>
> I also tried
>
> <to uri="bean:myBean?methodName=doSomething"/>
>
> I need help in binding the Exception object from Camel to the bean
>
> It not working  Am i missing some thing here ,Please suggest !!!!
>
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/Catch-camel-exception-in-java-code-tp5015714p5016570.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/

Reply via email to