Package org.quartz.impl

Examples of org.quartz.impl.StdSchedulerFactory.initialize()


                } else {
                    Properties configuration = new Properties();
                    configuration.load(in);
                    configuration.put("org.quartz.scheduler.instanceName", schedName);
                    StdSchedulerFactory stdSchedulerFactory = new StdSchedulerFactory();
                    stdSchedulerFactory.initialize(configuration);
                    scheduler = stdSchedulerFactory.getScheduler();
                }
            } catch (IOException e) {
                throw new SchedulerException("Unable to load configuration for scheduler " + id + ".  Configuration file "
                        + quartzConfigurationFile + " exists and was loaded but an error occurred during loading", e);
View Full Code Here


     try
     {
       InputStream is = Thread.currentThread().getContextClassLoader().getResourceAsStream("seam.quartz.properties");
       if (is != null) {
         schedulerFactory.initialize(is);
         log.debug("Found seam.quartz.properties file. Using it for Quartz config.");
       // } else if () {
       //  log.trace("Delpoy in JBoss AS, use HSQL for default job store");
       } else {
         schedulerFactory.initialize();
View Full Code Here

         schedulerFactory.initialize(is);
         log.debug("Found seam.quartz.properties file. Using it for Quartz config.");
       // } else if () {
       //  log.trace("Delpoy in JBoss AS, use HSQL for default job store");
       } else {
         schedulerFactory.initialize();
         log.debug("No seam.quartz.properties file. Using in-memory job store.");
       }

       scheduler = schedulerFactory.getScheduler();
       scheduler.start();
View Full Code Here

       //TODO: magical properties files are *not* the way to config Seam apps!
       InputStream is = Thread.currentThread().getContextClassLoader().getResourceAsStream("seam.quartz.properties");
       if (is != null)
       {
         schedulerFactory.initialize(is);
         log.debug("Found seam.quartz.properties file. Using it for Quartz config.");
       }
       else
       {
         schedulerFactory.initialize();
View Full Code Here

         schedulerFactory.initialize(is);
         log.debug("Found seam.quartz.properties file. Using it for Quartz config.");
       }
       else
       {
         schedulerFactory.initialize();
         log.debug("No seam.quartz.properties file. Using in-memory job store.");
       }
   
       scheduler = schedulerFactory.getScheduler();
       scheduler.start();
View Full Code Here

            log.error("method: getScheduler: unable to get the path to the properties file: " + propFileName + " in the framework: " + propFramework + ".\nThe Quartz scheduler is not launched.");
          else
          {
            filePath = propFileURL.getFile();
            StdSchedulerFactory sf = new StdSchedulerFactory();
            sf.initialize(filePath);
            quartzSheduler = sf.getScheduler();
          }
        }
        else
          quartzSheduler = StdSchedulerFactory.getDefaultScheduler()
View Full Code Here

      if (configuration.getQuartPropertiesFile() == null) {
        stream = closer.register(JmxTransModule.class.getResourceAsStream("/quartz.server.properties"));
      } else {
        stream = closer.register(new FileInputStream(configuration.getQuartPropertiesFile()));
      }
      serverSchedFact.initialize(stream);
    } catch (Throwable t) {
      throw closer.rethrow(t);
    } finally {
      closer.close();
    }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.