Spring Batch Integration config using Java DSL

最后都变了- 提交于 2020-01-15 09:37:27

问题


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


回答1:


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




回答2:


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.



来源:https://stackoverflow.com/questions/25614059/spring-batch-integration-config-using-java-dsl

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!