Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Typos & style.

...

All headers found in the message are passed to the JobLauncher as job parameters. String, Long, Double and java.util.Date values are copied to the org.springframework.batch.core.JobParametersBuilder - other data types are converted to Strings.

Examples

Triggering the Spring Batch job execution:

Code Block
java
java
from("direct:startBatch").to("spring-batch:myJob");

Triggering the Spring Batch job execution with the JabLauncher JobLauncher set explicitly.

Code Block
java
java
from("direct:startBatch").to("spring-batch:myJob?jobLauncherRef=myJobLauncher");

...

Apart from the Component, Camel Spring Batch provides also support classes, which can be used to hook into Spring Batch infrastructure.

...