public void runJob(Properties jobProps, JobListener jobListener)
      throws JobException {
    try {
      runJob(jobProps, jobListener, buildJobLauncher(jobProps));
    } catch (Exception e) {
      throw new JobException("Failed to run job " + jobProps.getProperty(ConfigurationKeys.JOB_NAME_KEY), e);
    }
  }
public void runJob ( Properties jobProps , JobListener jobListener ) throws JobException { try { runJob ( jobProps , jobListener , buildJobLauncher ( jobProps ) ) ; } catch ( Exception e ) { throw new JobException ( "Failed to run job " + jobProps . getProperty ( ConfigurationKeys . JOB_NAME_KEY ) , e ) ; } }
Run a job.

<p>
This method runs the job immediately without going through the Quartz scheduler.
This is particularly useful for testing.
</p>

@param jobProps Job configuration properties
@param jobListener {@link JobListener} used for callback, can be <em>null</em> if no callback is needed.
@throws JobException when there is anything wrong with running the job