Spring Batch分区的作业-MessageChannelPartitionHandler的问题

时间:2020-08-27 11:04:10

标签: spring-integration spring-batch

我们正在从Spring Batch 2.2升级到Spring Batch 4.1。我的配置如下所示: Spring Batch Partition Job Aggregation Problems 启动服务器时,我看到以下日志消息(我试图通过JMS响应运行)。

Content_DIV

结果是消息聚合无法按预期进行。我看到所有的消息都进入了几个MessageStore中,而不是所有返回消息都进入了AggregatorMessageHandler中的单个MessageStore中。日志记录清楚显示添加消息,将传入消息分为2个不同的组。 (我缩短了与消息的接触以提高可读性。)

SELECT  *
from t2
pivot(MAX(MTD) for [Time]  in ([20200803] , [20200804], [20200805])) pv

这是由于启动时的调试消息引起的吗?我该如何解决该问题?据我所知,我正在遵循通过JMS配置分区作业的示例。 (春季批次4.1)

提前感谢您的任何建议。

1 个答案:

答案 0 :(得分:0)

尝试使用method="aggregate"为分区处理程序配置该聚合器。解析器似乎也尝试使用handle(StepExecutionSplitter, StepExecution)中的MessageChannelPartitionHandler作为候选。

相关问题