I tried searching on this problem, but couldn't come up with anything.
Basically, i am using Spring and Camel Annotations to inject a
ProducerTemplate into a class and use the method requestBody to send an
object to a certain endpoint:
producerTemplate.requestBody("direct:workflow", obj);
Now if the route specified by "direct:workflow" throws an exception, i
want it to bubble that exception up to the class invoking the
ProducerTemplate. Instead, the ProducerTemplate returns the same Object
(obj) that I used as a parameter. How can I get it to throw the correct
exception instead?
Roshan