Search code examples
springspring-batchspring-integrationspring-dsl

Spring Batch Integration config using Java DSL


The Spring Integration Java DSL Reference and Spring Batch Java Configuration documentation show how to use Java Configuration for Spring Integration and Spring Batch.

But they dont show how to configure it for the Spring Batch Integration. How is a JobLaunchingGateway configured using DSL?

Cheers, Menno


Solution

  • The JobLaunchingGateway is a MessageHandler so you would define it as a @Bean and use it in a .handle() method in the flow.