PDA

View Full Version : getStatistics() in SimpleJobLauncher not working?



MrB
Nov 20th, 2007, 11:33 AM
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?

Dave Syer
Nov 20th, 2007, 01:35 PM
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.