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 <fbar...@gmail.com> wrote: > 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/How-to-set-a-custom-ExceptionHandler-to-a-consumer-tp5731097p5731099.html > Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen ----------------- Red Hat, Inc. FuseSource is now part of Red Hat Email: cib...@redhat.com Web: http://fusesource.com Twitter: davsclaus Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen