Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Apache Camel integration with Spring Batch

Does Apache Camel supports Spring Batch? I am my batch using Camel routes. Now we want to migrate to Spring Batch but not sure if my camel routes can integrate with Spring batch.

like image 580
Himanshu Yadav Avatar asked Jan 01 '26 22:01

Himanshu Yadav


1 Answers

Updated answer: Spring batch is supported as of Camel 2.10,

http://camel.apache.org/springbatch.html

Essentially the Spring Batch component in Camel will be able to trigger Spring batch jobs form a route.

Example: from("direct:startBatch").to("spring-batch:myJob"); where "myJob" is spring batch job defined elsewhere.

All Camel headers in the exchange are sent as parameter to the spring batch job.

like image 96
Petter Nordlander Avatar answered Jan 03 '26 13:01

Petter Nordlander



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!