Jan 21st, 2013, 01:30 AM
User defined Job id in spring batch
We are developing an application, where we will be creating the application Job ID using a shell script. We need to pass this shell script generated job id to spring batch, so that the job instance should have same job id as application job id.
Can any one tell me whether its possible in spring batch / how can we achieve this?
Last edited by bala_muthu; Jan 22nd, 2013 at 03:26 AM.
Jan 22nd, 2013, 01:53 PM
This is not possible within Spring Batch currently without extending a number of components. What is the significance to a custom generated job name? What is the use case you are attempting to solve?
Jan 23rd, 2013, 12:06 AM
Application is doing validation of the input before getting the job id. These process logs should also be recorded and the log file name should have the job id generated by spring batch. So we planned of having a Job id common and put that into spring batch.