camelContext.setAllowUseOriginalMessagefalse无法正常工作

问题描述

在创建骆驼上下文以及onException()子句中出现以下代码

@Bean
public CamelContext camelContext(ApplicationContext applicationContext)
{
CamelContext camelContext = new SpringCamelContext(applicationContext);
camelContext.setAllowUSEOriginalMessage(false); //This is done to perform optimization
return camelContext;
}

在onException块中,我正在使用uSEOriginalMessage()。但是在处理时,我发现在DefaultUnitOfWork类中仍创建了originalInMessage。 任何人都可以确认是否这是正确的行为?

骆驼版本:3.0.0

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)