You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by 23patel patel <23...@gmail.com> on 2017/11/22 07:46:36 UTC
processor not invoke from onException for exception raised from
custom load balancer
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.