Hello,
I'm using ZooKeeperRoutePolicy to select the leader and on non-leader
members I get of course the exception, which I'd like to suppress and just
log something like "skipping exchange on non-leader node"
Now, I know I could use onException clause but it would potentially catch
all others IllegalStateException's. It would be nice to have either an
option to throw more specific exception or route it somewhere else?
It's not a big deal, but just wonder if it is possible
15:44:16 [Camel (camel-1) thread #1 - timer://fire] ERROR deadletter -
Exchange[ExchangePattern: InOnly, BodyType: null, CaughtExceptionType:
java.lang.IllegalStateException, CaughtExceptionMessage: Zookeeper based
route policy prohibits processing exchanges, stopping route and failing the
exchange, StackTrace: java.lang.IllegalStateException: Zookeeper based route
policy prohibits processing exchanges, stopping route and failing the
exchange
at
org.apache.camel.component.zookeeper.policy.ZooKeeperRoutePolicy.onExchangeBegin(ZooKeeperRoutePolicy.java:88)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
--
View this message in context:
http://camel.465427.n5.nabble.com/suppress-zookeeper-leader-selection-exception-tp5790063.html
Sent from the Camel - Users mailing list archive at Nabble.com.