Hi guys I've introduced Spring Batch to some of my latest projects. I must admin that I like it :) .
I've checked out if there are any plans to provide SB component into Camel and I've found two uncompleted attempts two achieve that [1][2]. I thought that it would be faster to create the components from the scratch by myself and submit it here. My patch adds new module 'camel-spring-batch' to the 'components'. The module itself consists of two packages: a) The component module itself. It provides producer only - I can't image reasonable scenario to use Spring Batch as a consumer component. You use the component like: from("direct:invokeJobMessage").to("spring-batch:myJob"); Headers from the message are converted to the batch parameters passed to the job launcher. b) Support classes. I created CameItemReader, CamelItemWriter, CamelItemProcessor and CamelJobExecutionListener. These classes use camel templates to integrate Spring Batch with existing Camel infrastructure during the execution of the job. You use them to read/write batch data, transform processed items or converts Spring Batch lifecycle-related events to Camel messages. Could somebody take a look at my patch? I possibly commit it to the trunk (I got commiter rights only to the Camel Extra)? I'll create the documentation for the component as soon as it appears in the trunk. Laters. [1] https://issues.apache.org/jira/browse/CAMEL-2367 [2] http://mail-archives.apache.org/mod_mbox/camel-dev/201202.mbox/%3c1328441711745-5457726.p...@n5.nabble.com%3E -- Henryk Konsek http://henryk-konsek.blogspot.com