简体   繁体   中英

In spring batch remote partitioning can we have the master and slave configuration as a single configuration and run it as a single program

I'm using remote partitioning for my project and I have 2 projects in eclipse, ie one is the master program and a separate one for the Slave. Instead of having 2 projects separately , Can I combine the slave and master to a single context and run, master and slave as a single Java process in my JVM?

Yes, that is the common pattern - with the master participating as one of the "slaves". If you don't need to distribute the work across multiple JVMs, the partitioning doesn't need to use an external broker; see the batch integration test cases and in particular the vanilla one .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM