Results 1 to 2 of 2

Thread: getStatistics() in SimpleJobLauncher not working?

  1. #1
    Join Date
    Oct 2007
    Posts
    4

    Default 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. #2
    Join Date
    Jun 2005
    Posts
    4,230

    Default

    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •