Package org.quartz

Examples of org.quartz.SchedulerConfigException


            try {
                rebind();
            } catch (NamingException ne) {
                log.error("Failed to rebind Scheduler", ne);

                throw new SchedulerConfigException(
                        "Failed to rebind Scheduler - ", ne);
            }
        }
    }
View Full Code Here


                schedulerFactory.initialize(propertiesFile);
            }
        } catch (Exception e) {
            log.error("Failed to initialize Scheduler", e);

            throw new SchedulerConfigException(
                    "Failed to initialize Scheduler - ", e);
        }

        log.info("QuartzService(" + jndiName + ") created.");
    }
View Full Code Here

        try {
            rebind();
        } catch (NamingException ne) {
            log.error("Failed to rebind Scheduler", ne);

            throw new SchedulerConfigException("Failed to rebind Scheduler - ",
                    ne);
        }

        try {
            Scheduler scheduler = schedulerFactory.getScheduler();

            if (startScheduler) {
                scheduler.start();
            } else {
                log.info("Skipping starting the scheduler (will not run jobs).");
            }
        } catch (Exception e) {
            log.error("Failed to start Scheduler", e);

            throw new SchedulerConfigException("Failed to start Scheduler - ",
                    e);
        }

        log.info("QuartzService(" + jndiName + ") started.");
    }
View Full Code Here

            scheduler.shutdown();
        } catch (Exception e) {
            log.error("Failed to shutdown Scheduler", e);

            throw new SchedulerConfigException(
                    "Failed to shutdown Scheduler - ", e);
        }

        unbind(jndiName);
View Full Code Here

  @Override
  public void initialize() throws SchedulerConfigException {
    // Absolutely needs thread-bound TaskExecutor to initialize.
    this.taskExecutor = SchedulerFactoryBean.getConfigTimeTaskExecutor();
    if (this.taskExecutor == null) {
      throw new SchedulerConfigException(
        "No local TaskExecutor found for configuration - " +
        "'taskExecutor' property must be set on SchedulerFactoryBean");
    }
  }
View Full Code Here

      throws SchedulerConfigException {

    // Absolutely needs thread-bound DataSource to initialize.
    this.dataSource = SchedulerFactoryBean.getConfigTimeDataSource();
    if (this.dataSource == null) {
      throw new SchedulerConfigException(
        "No local DataSource found for configuration - " +
        "'dataSource' property must be set on SchedulerFactoryBean");
    }

    // Configure transactional connection settings for Quartz.
View Full Code Here

  public void initialize() throws SchedulerConfigException {
    // Absolutely needs thread-bound TaskExecutor to initialize.
    this.taskExecutor = SchedulerFactoryBean.getConfigTimeTaskExecutor();
    if (this.taskExecutor == null) {
      throw new SchedulerConfigException(
          "No local TaskExecutor found for configuration - " +
          "'taskExecutor' property must be set on SchedulerFactoryBean");
    }
  }
View Full Code Here

      throws SchedulerConfigException {

    // Absolutely needs thread-bound DataSource to initialize.
    this.dataSource = SchedulerFactoryBean.getConfigTimeDataSource();
    if (this.dataSource == null) {
      throw new SchedulerConfigException(
          "No local DataSource found for configuration - " +
          "'dataSource' property must be set on SchedulerFactoryBean");
    }

    // Configure transactional connection settings for Quartz.
View Full Code Here

        if (cl == null) {
          cl = findClassloader();
        }
        if (cl == null) {
          throw new SchedulerConfigException(
              "Unable to find a class loader on the current thread or class.");
        }

        in = cl.getResourceAsStream("quartz.properties");
View Full Code Here

        if (cl == null) {
          cl = findClassloader();
        }
        if (cl == null) {
          throw new SchedulerConfigException(
              "Unable to find a class loader on the current thread or class.");
        }

        in = cl.getResourceAsStream("quartz.properties");
View Full Code Here

TOP

Related Classes of org.quartz.SchedulerConfigException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.