We have one file processing job where we read the file in step 1, then in step 2 we call stored procedure for some data processing and in step 3 we clean data.
We are using spring integration to poll for message which contain the file name and path and some other info.
Once message is received, it launches the job using job launching gateway along with job parameters.
What I like to know is, if the job is started with say for eg thread-1 then does that same thread finish all the 3 steps or spring batch might switch the thread and finish with other thread.
Note : we are not using multithreading in our job. It is very basic job with 3 steps.