Apache camel 在运行时配置重新交付警察
我需要在运行时更改异常重新传递策略我将howtio添加到我的项目中,但它只允许我更改errorHandler策略,而不允许更改OneException 代码示例Apache camel 在运行时配置重新交付警察,apache-camel,spring-camel,Apache Camel,Spring Camel,我需要在运行时更改异常重新传递策略我将howtio添加到我的项目中,但它只允许我更改errorHandler策略,而不允许更改OneException 代码示例 onException (IOException.class) .maximumRedeliveries (3).maximumRedeliveryDelay (1000) .bean (IoExcpetionRouterBean.class); 我能够通过创建bean Rede
onException (IOException.class)
.maximumRedeliveries (3).maximumRedeliveryDelay (1000)
.bean (IoExcpetionRouterBean.class);
我能够通过创建bean RedeliveryPolicyDefinition和change来更改OneException的重新交付策略 OneException(Throwable.class) .bean(*RoutingSlip.class,“slip”).setRedeliveryPolicy(redeliveryPolicyDefinition) 无论何时更改redeliveryPolicyDefinition对象,它都会在运行时产生影响
我认为这是一个基于Claus Ibsen的解决方案,这可以由JMX来完成,但是我不能使用JMX i,只能更改配置错误处理程序而不是路由异常。