...
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 | ||||
---|---|---|---|---|
| ||||
from("direct:startBatch").to("spring-batch:myJob"); |
Triggering the Spring Batch job execution with the JabLauncher
JobLauncher
set explicitly.
Code Block | ||||
---|---|---|---|---|
| ||||
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.
...