Spring Batch Integration config using Java DSL

2019-08-09 06:22发布

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

2条回答
Root(大扎)
2楼-- · 2019-08-09 06:45

Gary is correct. You can see a demo of the java config version of this in my webinar on Spring Batch 3.0:

Video: https://www.youtube.com/watch?v=lHCPppMlylY
Code: https://github.com/mminella/SpringBatchWebinar

The SpringBatchIntegration module of that project is what will interest you.

查看更多
孤傲高冷的网名
3楼-- · 2019-08-09 06:51

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

查看更多
登录 后发表回答