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.