在创建骆驼上下文以及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