When Spring Batch component receives the message, it triggers the job execution. The job
will be executed using the
instance resolved according to the following algorithm:
JobLauncheris manually set on the component, then use it.
jobLauncherRefoption is set on the component, then search Camel Registry for the
JobLauncherwith the given name. Deprecated and will be removed in Camel 3.0!
if there is
JobLauncherregistered in the Camel Registry under jobLauncher name, then use it.
if none of the steps above allow to resolve the
JobLauncherand there is exactly one
JobLauncherinstance in the Camel Registry, then use it.
All headers found in the message are passed to the
JobLauncher as job
java.util.Date values are copied to the
org.springframework.batch.core.JobParametersBuilder - other data types are
converted to Strings.