You have a couple options:
- Implement your own query to load all running jobs. The JobRepository persists to a very simple database schema so writing your own DAO for this would be very straight forward.
- If you know all the names of the jobs you are concerned with, you could loop through them with the
JobExplorer#findRunningJobExecutions(String jobName)
. This will only work, however, if you have the job names.
I'd recommend option 1.
You can read more about the JobExplorer
here: http://docs.spring.io/spring-batch/apidocs/org/springframework/batch/core/explore/JobExplorer.html