Spring batch return custom process exit code
I have one jar with several jobs, I want to execute only one job each time and retrieve a custom exit code. For example, I have basic job ( retrieveErrorsJob ) configuration with one step that will read an input XML file and write the data in specific database table. Application class @SpringBootApplication @EnableBatchProcessing @Import(CoreCommonsAppComponent.class) public class Application { private static final Logger logger = LoggerFactory.getLogger(Application.class); private ConfigurationConstants constants; @Autowired public Application(ConfigurationConstants constants) { this