if (this.scheduler != null)
{
throw new UnsupportedOperationException("the scheduler is started already");
}
SchedulerFactory schedulerFactory;
try
{
String configFile =
ConfigResolver.getPropertyValue("deltaspike.scheduler.quartz_config-file", "quartz.properties");
schedulerFactory = new StdSchedulerFactory(configFile);
}
catch (SchedulerException e)
{
schedulerFactory = new StdSchedulerFactory();
}
try
{
this.scheduler = schedulerFactory.getScheduler();
this.scheduler.getListenerManager().addJobListener(new InjectionAwareJobListener());
if (!this.scheduler.isStarted())
{
String delayedStart =