Batch_Job_Execution Status is STARTING after runtime exception
Hi,
I am launching my jobs as such using JMS:
Code:
try {
jobLauncher.run(jobLocator.getJob("myJob"), builder.toJobParameters());
}
catch (JobExecutionException e) {
log.error("Could not execute job.", e);
}
catch(RuntimeException e){
log.error("Exception.", e);
}
I'm forcing a RuntimeException within the step, specifically a LineAggregator and I noticed the Status column of Batch_JOB_Execution stays at STARTING, shouldn't this job be marked by an error exit code in that table?
Is there an extra step I should take?
Thanks,
Angel