Hi,
I am launching my jobs as such using JMS:
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?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); }
Is there an extra step I should take?
Thanks,
Angel


Reply With Quote
