[ 
https://issues.apache.org/jira/browse/CAMEL-8894?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14978358#comment-14978358
 ] 

Ashley Sykes commented on CAMEL-8894:
-------------------------------------

Thanks for the reply. I have tried this but it doesn't work. In my class I have 
added the following exception handler:

onException(Exception.class).handled(true).process(new Processor() {
            @Override
            public void process(Exchange exchange) throws Exception {
                System.out.println("HELLO");
                exchange.getContext().stopRoute(exchange.getFromRouteId());
            }
        });

Hello is never printed in the wrapper.log (Karaf) and the ConnectException is 
still spewed out in the karaf.log

> Support to reconnect the server in ClientMode.
> ----------------------------------------------
>
>                 Key: CAMEL-8894
>                 URL: https://issues.apache.org/jira/browse/CAMEL-8894
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-netty4
>            Reporter: Willem Jiang
>            Assignee: Claus Ibsen
>             Fix For: 2.16.0
>
>         Attachments: NettyConsumerClientModeReconnectTest.java, 
> camel_reconnect.patch
>
>
> If the connection of the ClientMode Consumer is broken, current camel-netty 
> and camel-netty4 component doesn't support to reconnect the server. We could 
> introduce a reconnection mechanism to address this kind of issue.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to