THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
Name | Default Value | Description |
---|---|---|
|
| Deprecated and will be removed in Camel 3.0! Camel 2.10: Use jobLauncher=#theName instead. |
|
| Camel 2.11.1: Explicitly specifies a |
jobFromHeader | false | Camel 2.18: Explicitly defines if the jobName shouls be taken from the headers instead of the URI. The header has name: CamelSpringBatchJobName |
Usage
When Spring Batch component receives the message, it triggers the job execution. The job will be executed using the org.springframework.batch.core.launch.JobLaucher
instance resolved according to the following algorithm:
...
Code Block | ||||
---|---|---|---|---|
| ||||
<bean id="camelwriter" class="org.apache.camel.component.spring.batch.support.CamelItemWriter"> <constructor-arg ref="producerTemplate"/> <constructor-arg value="jms:dataQueue"/> </bean> <batch:job id="myJob"> <batch:step id="step"> <batch:tasklet> <batch:chunk reader="camelReadersomeReader" writer="someWritercamelwriter" commit-interval="100"/> </batch:tasklet> </batch:step> </batch:job> |
...