雅加达ee Java ee 7批处理API MultiResourceItemReader对应项
Spring Batch有一个方便的MultiResourceItemReader,我在Java EE 7 Batch Processing API中找不到类似的类。我想知道JavaEE7API是否包含类似的内容。或者,如果我可以使用其他Java EE服务实现流的预期行为:
流量:
- 计时器从中央数据库读取“拉请求”
- 它还将“拉请求”状态更新为“正在处理”
- 对于每个拉动请求
- 读取“拉请求”的源文件夹及其“目标数据库”
- 对于原始文件夹中的每个文件
- 在目标数据库的文件控制表中插入一个条目
- 逐行读取并插入文件内容(N行)
- 更新步骤2.1中写入的条目
- 将文件移动到新目录
- 调用目标数据库中的存储过程来验证和处理当前的“拉请求”文件李>
- 将中央数据库中的“拉取请求”状态更新为“已处理”李>
我可以为第一步和第二步编写EJB定时器。它会为每个请求触发一个批处理作业(它们可以并行运行)
但是我必须知道如何在没有^{CountDownLatch
)
有什么提示吗
# 1 楼答案
从spring.ioSB 3.0发布