I have a processor which is called OnException .However when custom load balancer raises httpconnect exception the process associated with Exception is not raised.
Below is the configuration <bean id="noErrorHandler" class="org.apache.camel.builder.NoErrorHandlerBuilder"/> <camelContext errorHandlerRef="noErrorHandler" id="camelContext" xmlns=" http://camel.apache.org/schema/spring" streamCache="true" typeConverterStatisticsEnabled="true"> <onException> <exception>java.net.ConnectException</exception> <redeliveryPolicy maximumRedeliveries="2" redeliveryDelay="0"/> <process ref="customExceptionProcessor" /> </onException> <route id="jettyRouter" > <from uri="jetty:// http://127.0.0.1:8081?matchOnUriPrefix=true&bridgeEndpoint=true"/> <setExchangePattern pattern="InOut"/> <to uri="direct:loadbalancerProcess" /> <log message="it is done!" /> </route> <route errorHandlerRef="noErrorHandler"> <from uri="direct:loadbalancerProcess" /> <loadBalance> <custom ref="customFailover"/> </loadBalance> </route> </camelContext> Anyone face this issue i am using camel 2.14.1 Thanks, Anjana.
