Announcement Announcement Module
No announcement yet.
getStatistics() in SimpleJobLauncher not working? Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • getStatistics() in SimpleJobLauncher not working?

    Hi, have changed one of the samples to cast the laucher to SimpleJobLauncher (which is it's run time type) and then invoked the getStatistics() method after a call to run(). However I get an empty properties collection. When I examine the database and do a select * from batch_step_execution I get stats in the task_statistics column. Am I using the API correctly?

  • #2
    It only gives you statistics from running jobs (launched from this launcher). If you are running synchronously and run() has completed there is no job executing. I'll clarify the Javadocs.