Re: How to set a custom ExceptionHandler to a consumer

2013-04-25 Thread Claus Ibsen
Hi I found the issue is a bug, as the netty component need to configure the consumer when its created. So I have logged a ticket https://issues.apache.org/jira/browse/CAMEL-6312 On Thu, Apr 18, 2013 at 5:53 PM, fbarbat wrote: > Hi Valerian, > > I was talking about org.apache.camel.spi.ExceptionH

Re: How to set a custom ExceptionHandler to a consumer

2013-04-18 Thread fbarbat
Hi Valerian, I was talking about org.apache.camel.spi.ExceptionHandler. As far as I know, OnException does not catch exceptions thrown inside the consumer such as java.nio.channels.ClosedChannelException. Any ideas? Thanks. -- View this message in context: http://camel.465427.n5.nabble.com

Re: How to set a custom ExceptionHandler to a consumer

2013-04-18 Thread valerian.merkling
from("netty:tcp:...").onException(MyEx).dosomethings.end().transform(constant("hello")); http://camel.apache.org/exception-clause.html -- View this message in context: http://camel.465427.n5.nabble.com/How-to-set-a-custom-ExceptionHandler-to-a-consumer-tp5731097p5731098.html Sent from the Cam