Thanks ..it is working,there was problem in my war
--
View this message in context:
http://camel.465427.n5.nabble.com/Catch-camel-exception-in-java-code-tp5015714p5016667.html
Sent from the Camel - Users mailing list archive at Nabble.com.
On Wed, Nov 23, 2011 at 2:18 PM, majiedahamed
wrote:
> The camel version is 2.4
>
There could be an issue with that old Camel release.
If you bean has a signature of Exchange as below:
public void doSomething(Exchange exchange) {
Object caught = exchange.getProperty(Exchange.EXCEPTION_CAUGHT
Also please suggest how can i use
@ExchangeException To bind to an Exception set on the exchange (Camel 2.0)
here ..!!
--
View this message in context:
http://camel.465427.n5.nabble.com/Catch-camel-exception-in-java-code-tp5015714p5016642.html
Sent from the Camel - Users mailing list archive a
The camel version is 2.4
1)the original code is
+++
org.apache.camel.processor.validation.SchemaValidationException
org.xml.sax.SAXParseException
org.apache.camel.ValidationException
java.lang.Exception
tru
Sorry class is like this
public class MyBean {
public void doSomething(Object body, Exception cause) {
cause.printStackTrace();
}
}
--
View this message in context:
http://camel.465427.n5.nabble.com/Catch-camel-exception-in-java-code-tp5015714p5016574.h
What version of Camel are you using?
On Wed, Nov 23, 2011 at 1:57 PM, majiedahamed
wrote:
> Thanks..
>
> I went through the link
>
> 1)
>
> 2)
> ..
>
>
>
> 3)My class goes like this
> public void doSomething(Object body, Exception cause) {
> cause.printStackTrace();
Thanks..
I went through the link
1)
2)
..
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
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
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
..
Public class MyBean{
// ?? variables types in beans
public void doSomething(Object body, Exception cause) {
}
Hi
Just route to a bean in the section.
..
And the spring bean
And the bean signature uses bean parameter binding with Camel
For example the 1st parameter is the message body, the 2nd the caused
exception etc.
public void doSomething(Object body, Exception cause) {
}
On Wed, Nov
10 matches
Mail list logo