If you don't want to let the default camel error handler work for you, you need 
to set error handler to noErrorHandler like this if you are using Spring 
configuration.

<!-- You can also define the errorHandler inside the camelContext -->  
<camelContext errorHandlerRef="noErrorHandler" 
xmlns="http://camel.apache.org/schema/spring";>  
<errorHandler id="noErrorHandler" type="NoErrorHandler"/>  
</camelContext>


or Java DSL
public void configure() {
errorHandler(noErrorHandler());


        ……
}



--  
Willem Jiang

FuseSource
Web: http://www.fusesource.com (http://www.fusesource.com/)
Blog: http://willemjiang.blogspot.com (http://willemjiang.blogspot.com/) 
(English)
          http://jnn.javaeye.com (http://jnn.javaeye.com/) (Chinese)
Twitter: willemjiang  
Weibo: willemjiang





On Monday, September 3, 2012 at 12:55 AM, nilspreusker wrote:

> Claus, thanks for the quick reply! Turns out the consumer was synchronous all
> along, I was simply missing that the exception I was expecting was set to
> the exchange. All I had to do to make it work the way I wanted was to
> retrieve the exception by calling exchange.getException() and re-throw it...
> Thanks again!
>  
> Nils
>  
>  
>  
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/Synchronous-consumer-tp5718500p5718515.html
> Sent from the Camel - Users mailing list archive at Nabble.com 
> (http://Nabble.com).



Reply via email to