第 318 章 Spring Batch 组件

作为 Camel 2.10 版本提供

spring-batch: 组件和支持类在 Camel 和 Spring Batch 基础架构之间提供集成桥接。

Maven 用户需要将以下依赖项添加到其 pom.xml 中:

<dependency>
    <groupId>org.apache.camel</groupId>
    <artifactId>camel-spring-batch</artifactId>
    <version>x.x.x</version>
    <!-- use the same version as your Camel core version -->
</dependency>

318.1. URI 格式

spring-batch:jobName[?options]

其中 jobName 代表 Camel registry 中的 Spring Batch 作业名称。或者,如果提供了 JobRegistry,它将用于定位作业。

警告:此组件只能用于定义制作者端点,这意味着您无法在 from () 语句中使用 Spring Batch 组件。