コード例 #1
0
ファイル: StartupBean.java プロジェクト: metlos/RHQ-old
  /**
   * Starts the Quartz scheduler now. We are assured that all EJBs are deployed now, so any jobs
   * that have to be executed now will have those EJBs available.
   *
   * @throws RuntimeException
   */
  private void startScheduler() throws RuntimeException {
    log.info("Starting the scheduler...");

    try {
      schedulerBean.startQuartzScheduler();
    } catch (SchedulerException e) {
      throw new RuntimeException("Cannot start the scheduler!", e);
    }
  }