Hi, I have question about retrieving ExecutionContext. If some job is successfully finished (of failed does not matter) and after that following code is executed:
and ExecutionContext is empty although data is in database.Code:JobRepository jobRepository = (JobRepository) applicationContext .getBean("jobRepository"); boolean jobExists = jobRepository.isJobInstanceExists(job.getName(), jobParameters); if (jobExists) { JobExecution jobExecution = jobRepository.getLastJobExecution(job .getName(), jobParameters); jobExecution.getExecutionContext() //this is empty }
Is there any way for me to retrieve data from batch_job_execution_context table?
Thanks, Ivica.


Reply With Quote