I am upgrading Spring batch from 3.x to 4.3. Currently we are using Spring batch integration and XML configuration for putting & receiving messages via MQ. Spring batch 4 introduced @EnableBatchIntegration
and corresponding XML XSDs are
xmlns:batch-int="http://www.springframework.org/schema/batch-integration"
http://www.springframework.org/schema/batch-integration
https://www.springframework.org/schema/batch-integration/spring-batch-integration.xsd
Could you please let me know how to use batch-int configurations in XML for below two xml element configurations?
<batch-int:remote-chunking-manager message-template="" step="" reply-channel="" id=""/>
<batch-int:remote-chunking-worker output-channel="" item-writer="" input-channel="" id=""/>
Spring Batch reference documentation provides a toggle (at the top of each page) to show code examples in XML or Java configuration styles (or both). However, there seems to be only Java config examples in the remote chunking/partitioning sections, the XML equivalent is missing. I created an issue for that: https://github.com/spring-projects/spring-batch/issues/3858.
In the meantime, here are the equivalent XML snippets for remote chunking:
Worker setup
Manager setup